aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-04-03 17:48:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 19:21:02 -0400
commitb19a99392a6344e34a82c5e33b9c9d25d0d0fda7 (patch)
tree04e541ae841c1cb7b1c4a0635eacb04aef154d6f /mm/memory.c
parent74e77fb9a23813f5c2864d8e11cfec268a45c4cc (diff)
mm/memory.c: mark functions as static
mark functions as static in memory.c because they are not used outside this file. This eliminates the following warnings in mm/memory.c: mm/memory.c:3530:5: warning: no previous prototype for `numa_migrate_prep' [-Wmissing-prototypes] mm/memory.c:3545:5: warning: no previous prototype for `do_numa_page' [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Rik van Riel <riel@redhat.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 22dfa617bddb..57ff3510ddbd 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3531,7 +3531,7 @@ static int do_nonlinear_fault(struct mm_struct *mm, struct vm_area_struct *vma,
3531 return __do_fault(mm, vma, address, pmd, pgoff, flags, orig_pte); 3531 return __do_fault(mm, vma, address, pmd, pgoff, flags, orig_pte);
3532} 3532}
3533 3533
3534int numa_migrate_prep(struct page *page, struct vm_area_struct *vma, 3534static int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
3535 unsigned long addr, int page_nid, 3535 unsigned long addr, int page_nid,
3536 int *flags) 3536 int *flags)
3537{ 3537{
@@ -3546,7 +3546,7 @@ int numa_migrate_prep(struct page *page, struct vm_area_struct *vma,
3546 return mpol_misplaced(page, vma, addr); 3546 return mpol_misplaced(page, vma, addr);
3547} 3547}
3548 3548
3549int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma, 3549static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
3550 unsigned long addr, pte_t pte, pte_t *ptep, pmd_t *pmd) 3550 unsigned long addr, pte_t pte, pte_t *ptep, pmd_t *pmd)
3551{ 3551{
3552 struct page *page = NULL; 3552 struct page *page = NULL;