• Arnd Bergmann's avatar
    scsi: NCR5380: no longer mark irq probing as __init · 77f18a87
    Arnd Bergmann authored
    The g_NCR5380 has been converted to more regular probing, which
    means its probe function can now be invoked after the __init section
    is discarded, as pointed out by this kbuild warning:
    
    WARNING: drivers/scsi/built-in.o(.text+0x3a105): Section mismatch in reference from the function generic_NCR5380_isa_match() to the function .init.text:probe_intr()
    WARNING: drivers/scsi/built-in.o(.text+0x3a145): Section mismatch in reference from the function generic_NCR5380_isa_match() to the variable .init.data:probe_irq
    
    To make sure this works correctly in all cases, let's remove
    the __init and __initdata annotations.
    
    Fixes: a8cfbcae ("scsi: g_NCR5380: Stop using scsi_module.c")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarFinn Thain <fthain@telegraphics.com.au>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    77f18a87
NCR5380.c 71.7 KB