Re: 2.6.34-rc1: pci_register_set_vga_state section mismatch

From: Jesse Barnes
Date: Fri Mar 26 2010 - 19:32:15 EST


On Fri, 26 Mar 2010 14:42:53 +0100
Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> wrote:

> Stefan Richter wrote:
> >> WARNING: drivers/pci/built-in.o(__ksymtab+0x320): Section mismatch in reference from the variable __ksymtab_pci_register_set_vga_state to the function .init.text:pci_register_set_vga_state()
> >> The symbol pci_register_set_vga_state is exported and annotated __init
> >> Fix this by removing the __init annotation of pci_register_set_vga_state or drop the export.
> >
> > This is obviously introduced by commit
> > 95a8b6efc5d07103583f706c8a5889437d537939
> > pci: Update pci_set_vga_state() to call arch functions
>
> PS:
> There is only a single user of this symbol in the mainline at the
> moment, arch/x86/kernel/apic/x2apic_uv_x.c, controlled by
> arch/x86/Kconfig:config X86_UV, which allows only static linking.
> I.e. the warning is a false positive for now. But given how small
> pci_register_set_vga_state() is, it appears appropriate to drop the
> __init annotation.

I'm just sending out a fix to remove the export now.

--
Jesse Barnes, Intel Open Source Technology Center
--
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/