Skip to content

Commit

Permalink
mm/mmap.c: mark function as static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rashika authored and torvalds committed Apr 3, 2014
1 parent b19a993 commit eafd4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ static void validate_mm_rb(struct rb_root *root, struct vm_area_struct *ignore)
}
}

void validate_mm(struct mm_struct *mm)
static void validate_mm(struct mm_struct *mm)
{
int bug = 0;
int i = 0;
Expand Down

0 comments on commit eafd4dc

Please sign in to comment.