Bug 16530

Summary: Section mismatch in reference from the function pcibios_scan_specific_bus()
Product: Other Reporter: Sebastian Kemper (sebastian_ml)
Component: OtherAssignee: other_other
Status: CLOSED OBSOLETE    
Severity: low CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.35 Subsystem:
Regression: No Bisected commit-id:
Attachments: Output of make CONFIG_DEBUG_SECTION_MISMATCH=y

Description Sebastian Kemper 2010-08-06 14:48:50 UTC
Created attachment 27366 [details]
Output of make CONFIG_DEBUG_SECTION_MISMATCH=y

Hello all,

I saw this while compiling 2.6.35:

...
  AR      arch/x86/lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x2b769c): Section mismatch in reference from the function pcibios_scan_specific_bus() to the function .devinit.text:pci_scan_bus_on_node()
The function pcibios_scan_specific_bus() references
the function __devinit pci_scan_bus_on_node().
This is often because pcibios_scan_specific_bus lacks a __devinit
annotation or the annotation of pci_scan_bus_on_node is wrong.
...
  LD      arch/x86/pci/built-in.o
WARNING: arch/x86/pci/built-in.o(.text+0xdec): Section mismatch in reference from the function pcibios_scan_specific_bus() to the function .devinit.text:pci_scan_bus_on_node()
The function pcibios_scan_specific_bus() references
the function __devinit pci_scan_bus_on_node().
This is often because pcibios_scan_specific_bus lacks a __devinit
annotation or the annotation of pci_scan_bus_on_node is wrong.
...

Had no idea whether to report this, hence I did :) Please resolve if unnecessary.

Kind regards
Sebastian