Skip to content
  • David Howells's avatar
    PCI: Global variable decls must match the defs in section attributes · 491424c0
    David Howells authored
    
    
    Global variable declarations must match the definitions in section attributes
    as the compiler is at liberty to vary the method it uses to access a variable,
    depending on the section it is in.
    
    When building the FRV arch, I now see:
    
      drivers/built-in.o: In function `pci_apply_final_quirks':
      drivers/pci/quirks.c:2606: relocation truncated to fit: R_FRV_GPREL12 against symbol `pci_dfl_cache_line_size' defined in .devinit.data section in drivers/built-in.o
      drivers/pci/quirks.c:2623: relocation truncated to fit: R_FRV_GPREL12 against symbol `pci_dfl_cache_line_size' defined in .devinit.data section in drivers/built-in.o
      drivers/pci/quirks.c:2630: relocation truncated to fit: R_FRV_GPREL12 against symbol `pci_dfl_cache_line_size' defined in .devinit.data section in drivers/built-in.o
    
    because the declaration of pci_dfl_cache_line_size in linux/pci.h does not
    match the definition in drivers/pci/pci.c.
    
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    491424c0