• Randy Dunlap's avatar
    IOATDMA: fix section mismatches · 92504f79
    Randy Dunlap authored
    Rename struct pci_driver data so that false section mismatch warnings won't
    be produced.
    
    Sam, ISTM that depending on variable names is the weakest & worst part of
    modpost section checking.  Should __init_refok work here?  I got build
    errors when I tried to use it, probably because the struct pci_driver probe
    and remove methods are not marked "__init_refok".
    
    WARNING: drivers/dma/ioatdma.o(.data+0x10): Section mismatch: reference to .init.text: (between 'ioat_pci_drv' and 'ioat_pci_tbl')
    WARNING: drivers/dma/ioatdma.o(.data+0x14): Section mismatch: reference to .exit.text: (between 'ioat_pci_drv' and 'ioat_pci_tbl')
    Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Acked-by: default avatarChris Leech <christopher.leech@intel.com>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    92504f79
ioatdma.c 23 KB