Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

make mm/sparse.c: make a function static

This patch makes the needlessly global sparse_early_mem_map_alloc()
static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
9e5c6da7 23d5f96c

+1 -1
+1 -1
mm/sparse.c
··· 377 377 } 378 378 #endif /* !CONFIG_SPARSEMEM_VMEMMAP */ 379 379 380 - struct page __init *sparse_early_mem_map_alloc(unsigned long pnum) 380 + static struct page __init *sparse_early_mem_map_alloc(unsigned long pnum) 381 381 { 382 382 struct page *map; 383 383 struct mem_section *ms = __nr_to_section(pnum);