summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-04-23 08:27:18 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-04-23 08:27:18 +1000
commitc474a04ec029ad9faddba3a36f3df11467889032 (patch)
tree462c1f3d1bd85b914faf104305822785ae3a4382 /mm
parentecda1e29ddfd038cb67c21639291d61c5900d462 (diff)
mm/gup.c: tweaks
- include some more header files, but many are still missed - fix some 80-col overflows by removing unneeded `inline' Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/gup.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/mm/gup.c b/mm/gup.c
index a984483fcaf9..af925a315829 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -1,3 +1,8 @@
+#include <linux/kernel.h>
+#include <linux/errno.h>
+#include <linux/err.h>
+#include <linux/spinlock.h>
+
#include <linux/hugetlb.h>
#include <linux/mm.h>
#include <linux/rmap.h>
@@ -6,8 +11,8 @@
#include "internal.h"
-static inline struct page *no_page_table(struct vm_area_struct *vma,
- unsigned int flags)
+static struct page *no_page_table(struct vm_area_struct *vma,
+ unsigned int flags)
{
/*
* When core dumping an enormous anonymous area that nobody
@@ -208,7 +213,7 @@ struct page *follow_page_mask(struct vm_area_struct *vma,
return follow_page_pte(vma, address, pmd, flags);
}
-static inline int stack_guard_page(struct vm_area_struct *vma, unsigned long addr)
+static int stack_guard_page(struct vm_area_struct *vma, unsigned long addr)
{
return stack_guard_page_start(vma, addr) ||
stack_guard_page_end(vma, addr+PAGE_SIZE);