From: Adrian Bunk This patch makes the needlessly global print_bad_pte() static. Signed-off-by: Adrian Bunk Reviewed-by: KOSAKI Motohiro Signed-off-by: Andrew Morton --- include/linux/mm.h | 1 - mm/memory.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/mm.h~make-mm-memoryc-print_bad_pte-static include/linux/mm.h --- a/include/linux/mm.h~make-mm-memoryc-print_bad_pte-static +++ a/include/linux/mm.h @@ -804,7 +804,6 @@ extern int access_process_vm(struct task int get_user_pages(struct task_struct *tsk, struct mm_struct *mm, unsigned long start, int len, int write, int force, struct page **pages, struct vm_area_struct **vmas); -void print_bad_pte(struct vm_area_struct *, pte_t, unsigned long); extern int try_to_release_page(struct page * page, gfp_t gfp_mask); extern void do_invalidatepage(struct page *page, unsigned long offset); diff -puN mm/memory.c~make-mm-memoryc-print_bad_pte-static mm/memory.c --- a/mm/memory.c~make-mm-memoryc-print_bad_pte-static +++ a/mm/memory.c @@ -374,7 +374,8 @@ static inline void add_mm_rss(struct mm_ * * The calling function must still handle the error. */ -void print_bad_pte(struct vm_area_struct *vma, pte_t pte, unsigned long vaddr) +static void print_bad_pte(struct vm_area_struct *vma, pte_t pte, + unsigned long vaddr) { printk(KERN_ERR "Bad pte = %08llx, process = %s, " "vm_flags = %lx, vaddr = %lx\n", _