aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2014-04-03 17:48:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 19:21:02 -0400
commiteafd4dc4d76a9c6f184cc1de5a7891b7f6f76f2c (patch)
tree0a45a3852e6690bd3a35363d5e2d08a0b3dab04c /mm/mmap.c
parentb19a99392a6344e34a82c5e33b9c9d25d0d0fda7 (diff)
mm/mmap.c: mark function as static
Mark function as static in mmap.c because they are not used outside this file. This eliminates the following warning in mm/mmap.c: mm/mmap.c:407:6: warning: no previous prototype for `validate_mm' [-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/mmap.c')
-rw-r--r--mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 81ba54ff96c7..ac1d6671b1ed 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -405,7 +405,7 @@ static void validate_mm_rb(struct rb_root *root, struct vm_area_struct *ignore)
405 } 405 }
406} 406}
407 407
408void validate_mm(struct mm_struct *mm) 408static void validate_mm(struct mm_struct *mm)
409{ 409{
410 int bug = 0; 410 int bug = 0;
411 int i = 0; 411 int i = 0;