[PATCH] mm: fix section mismatch warning in sparse.c
- From: Sam Ravnborg <sam@xxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 23:10:36 +0100
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 <sam@xxxxxxxxxxxx>
Cc: Andy Whitcroft <apw@xxxxxxxxxxxx>
Cc: Mel Gorman <mel@xxxxxxxxx>
Cc: Christoph Lameter <clameter@xxxxxxx>
---
mm/sparse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/sparse.c b/mm/sparse.c
index a2183cb..231c7b5 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);
--
1.5.4.rc3.14.g44397
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/11] fix 25 section mismatch warnings..
- From: Sam Ravnborg
- [PATCH 0/11] fix 25 section mismatch warnings..
- Prev by Date: [PATCH] x86: fix section mismatch warning in kernel/pci-calgary
- Next by Date: [PATCH] cpu: fix section mismatch related to cpu_chain
- Previous by thread: [PATCH] x86: fix section mismatch warning in kernel/pci-calgary
- Next by thread: [PATCH] cpu: fix section mismatch related to cpu_chain
- Index(es):
Relevant Pages
|