Skip to contentSkip to conversation

ia64, metag: Do not export min_low_pfn in arch-specific code

PATCH In review Geert Uytterhoeven 3 participants 3 messages Apr 27, 2013 – May 22, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64, metag: Do not export min_low_pfn in arch-specific code

As of commit 787dcbe6984b3638e94f60d807dcb51bb8a07211 ("MIPS: Export symbols used by KVM/MIPS module"), min_low_pfn is already exported by the generic mm/bootmem.c, causing:

WARNING: vmlinux: 'min_low_pfn' exported twice. Previous export was in vmlinux

---
 arch/ia64/kernel/ia64_ksyms.c   |    1 -
 arch/metag/kernel/metag_ksyms.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
arch/ia64/kernel/ia64_ksyms.c +0 -1
index 5b7791d..ca95c8b 100644
@@ -25,7 +25,6 @@ EXPORT_SYMBOL(copy_page);
 
 #ifdef CONFIG_VIRTUAL_MEM_MAP
 #include <linux/bootmem.h>
-EXPORT_SYMBOL(min_low_pfn);	/* defined by bootmem.c, but not exported by generic code */
 EXPORT_SYMBOL(max_low_pfn);	/* defined by bootmem.c, but not exported by generic code */
 #endif
 
arch/metag/kernel/metag_ksyms.c +0 -1
index ec872ef..08e9b6f 100644
@@ -12,7 +12,6 @@ EXPORT_SYMBOL(copy_page);
 #ifdef CONFIG_FLATMEM
 /* needed for the pfn_valid macro */
 EXPORT_SYMBOL(max_pfn);
-EXPORT_SYMBOL(min_low_pfn);
 #endif
 
 /* TBI symbols */
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Geert Uytterhoeven

As of commit 787dcbe6984b3638e94f60d807dcb51bb8a07211 ("MIPS: Export symbols used by KVM/MIPS module"), min_low_pfn is already exported by the generic mm/bootmem.c, causing:

WARNING: vmlinux: 'min_low_pfn' exported twice. Previous export was in vmlinux

This has been pointed out several times and needs fixing in the mips tree where the warning was introduced.

Cheers
James

#2 lore raw
Quoted 11 lines · James Hogan
Quoted 7 lines · Geert Uytterhoeven

As of commit 787dcbe6984b3638e94f60d807dcb51bb8a07211 ("MIPS: Export symbols used by KVM/MIPS module"), min_low_pfn is already exported by the generic mm/bootmem.c, causing:

WARNING: vmlinux: 'min_low_pfn' exported twice. Previous export was in vmlinux

This has been pointed out several times and needs fixing in the mips tree where the warning was introduced.

I've changed the MIPS code to no longer require the export of min_low_pfn and dropped the export of that particular file. I still see that IA-64 and metag export min_low_pfn so maybe it should be exported from mm/ after all?

Ralf