diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-04-23 08:27:18 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-04-23 08:27:18 +1000 |
commit | c474a04ec029ad9faddba3a36f3df11467889032 (patch) | |
tree | 462c1f3d1bd85b914faf104305822785ae3a4382 /mm | |
parent | ecda1e29ddfd038cb67c21639291d61c5900d462 (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.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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); |