Commit de498507258210b06a008138abbb24d148dee49d

Authored by Rashika Kheria
Committed by Linus Torvalds
1 parent d20199e1f5

mm/nobootmem.c: mark function as static

Mark function as static in nobootmem.c because it is not used outside
this file.

This eliminates the following warning in mm/nobootmem.c:

  mm/nobootmem.c:324:15: warning: no previous prototype for `___alloc_bootmem_node' [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -334,7 +334,7 @@
334 334 return ___alloc_bootmem_node_nopanic(pgdat, size, align, goal, 0);
335 335 }
336 336  
337   -void * __init ___alloc_bootmem_node(pg_data_t *pgdat, unsigned long size,
  337 +static void * __init ___alloc_bootmem_node(pg_data_t *pgdat, unsigned long size,
338 338 unsigned long align, unsigned long goal,
339 339 unsigned long limit)
340 340 {