]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: NCR5380: no longer mark irq probing as __init
authorArnd Bergmann <arnd@arndb.de>
Tue, 11 Oct 2016 09:23:23 +0000 (11:23 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 17 Oct 2016 18:13:03 +0000 (14:13 -0400)
commit6768a89d2c12cc462fb72f739549c5d2d5fd504a
tree5ae8bc460df6fa3aeeac9f2f0d56e505b23562f9
parent5e934591940e14554e7a48de6b2713af90b44e0e
scsi: NCR5380: no longer mark irq probing as __init

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: 775ef85e1940 ("scsi: g_NCR5380: Stop using scsi_module.c")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c