aboutsummaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorSam Ravnborg <[email protected]>2008-02-05 06:29:35 +0000
committerLinus Torvalds <[email protected]>2008-02-05 17:44:19 +0000
commita322f8ab66f50b6c0dcdb59abae84fede7a5fded (patch)
treede492ded59ef0ed1f1705244f51e46628fa26603 /mm/sparse.c
parentmm: fix PageUptodate data race (diff)
downloadkernel-a322f8ab66f50b6c0dcdb59abae84fede7a5fded.tar.gz
kernel-a322f8ab66f50b6c0dcdb59abae84fede7a5fded.zip
mm: fix section mismatch warning in sparse.c
Fix following warning: WARNING: mm/built-in.o(.text+0x22069): Section mismatch in reference from the function sparse_early_usemap_alloc() to the function .init.text:__alloc_bootmem_node() static sparse_early_usemap_alloc() were used only by sparse_init() and with sparse_init() annotated _init it is safe to annotate sparse_early_usemap_alloc with __init too. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Andy Whitcroft <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse.c')
-rw-r--r--mm/sparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse.c b/mm/sparse.c
index 7859c8083334..f6a43c09c322 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -237,7 +237,7 @@ static unsigned long *__kmalloc_section_usemap(void)
}
#endif /* CONFIG_MEMORY_HOTPLUG */
-static unsigned long *sparse_early_usemap_alloc(unsigned long pnum)
+static unsigned long *__init sparse_early_usemap_alloc(unsigned long pnum)
{
unsigned long *usemap;
struct mem_section *ms = __nr_to_section(pnum);