The patch titled fix-corruption-of-memmap-on-ia64-sparsemem-when-mem_section-is-not-a-power-of-2 fix has been added to the -mm tree. Its filename is fix-corruption-of-memmap-on-ia64-sparsemem-when-mem_section-is-not-a-power-of-2-fix.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: fix-corruption-of-memmap-on-ia64-sparsemem-when-mem_section-is-not-a-power-of-2 fix From: William Lee Irwin III <wli@xxxxxxxxxxxxxx> CONFIG_SPARSEMEM sans CONFIG_MEMORY_HOTPLUG trips the following warning: mm/sparse.c:254: warning: '__kmalloc_section_usemap' defined but not used The following patch silences it. Signed-off-by: William Irwin <bill.irwin@xxxxxxxxxx> Cc: Bob Picco <bob.picco@xxxxxx> Cc: Andy Whitcroft <apw@xxxxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Cc: "Luck, Tony" <tony.luck@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/sparse.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/sparse.c~fix-corruption-of-memmap-on-ia64-sparsemem-when-mem_section-is-not-a-power-of-2-fix mm/sparse.c --- a/mm/sparse.c~fix-corruption-of-memmap-on-ia64-sparsemem-when-mem_section-is-not-a-power-of-2-fix +++ a/mm/sparse.c @@ -250,10 +250,12 @@ static unsigned long usemap_size(void) return size_bytes; } +#ifdef CONFIG_MEMORY_HOTPLUG static unsigned long *__kmalloc_section_usemap(void) { return kmalloc(usemap_size(), GFP_KERNEL); } +#endif /* CONFIG_MEMORY_HOTPLUG */ static unsigned long *sparse_early_usemap_alloc(unsigned long pnum) { _ Patches currently in -mm which might be from wli@xxxxxxxxxxxxxx are quicklist-support-for-x86_64.patch x86_64-support-poll-on-dev-mcelog-fix.patch rework-ptep_set_access_flags-and-fix-sun4c.patch fix-corruption-of-memmap-on-ia64-sparsemem-when-mem_section-is-not-a-power-of-2-fix.patch only-allow-nonlinear-vmas-for-ram-backed-filesystems.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html