Subject: Re: EXPORT_SYMBOL(min_low_pfn);

From: James Hogan <[email-masked]>
Date: Wed, 6 Feb 2013 09:40:01 +0000

On 05/02/13 19:31, Tony Luck wrote:
> Today i noticed in linux-next this commit:
> 
> commit b0d9c17503444c2df8cb8e93ccfa4877edd71933
> Author: Sanjay Lal <[email-masked]>
> Date:   Wed Nov 21 18:34:14 2012 -0800
> 
>     MIPS: Export symbols used by KVM/MIPS module
> 
> which causes this kernel build warning on ia64:
> 
> WARNING: vmlinux: 'min_low_pfn' exported twice. Previous export was in vmlinux
> 
> 
> We just need to delete the arch/ia64 specific export (and grep says
> for arch/metag too):
> 
> $ git grep min_low_pfn | grep EXPORT
> arch/ia64/kernel/ia64_ksyms.c:EXPORT_SYMBOL(min_low_pfn);	/* defined
> by bootmem.c, but not exported by generic code */
> arch/metag/kernel/metag_ksyms.c:EXPORT_SYMBOL(min_low_pfn);
> mm/bootmem.c:EXPORT_SYMBOL(min_low_pfn);

Yes, I had noticed this the other day too. I'll probably roll the
equivalent metag patch into the metag tree since on metag it does no
real harm not exporting it at this stage.

Cheers
James