Re: 2.6.34-rc1: pci_register_set_vga_state section mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
Stefan Richter
-=====-==-=- --== ==-=-
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux