Commit 77f18a87 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Martin K. Petersen

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: 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>
parent 7d2c0d64
...@@ -353,7 +353,7 @@ static void NCR5380_print_phase(struct Scsi_Host *instance) ...@@ -353,7 +353,7 @@ static void NCR5380_print_phase(struct Scsi_Host *instance)
#endif #endif
static int probe_irq __initdata; static int probe_irq;
/** /**
* probe_intr - helper for IRQ autoprobe * probe_intr - helper for IRQ autoprobe
...@@ -365,7 +365,7 @@ static int probe_irq __initdata; ...@@ -365,7 +365,7 @@ static int probe_irq __initdata;
* used by the IRQ probe code. * used by the IRQ probe code.
*/ */
static irqreturn_t __init probe_intr(int irq, void *dev_id) static irqreturn_t probe_intr(int irq, void *dev_id)
{ {
probe_irq = irq; probe_irq = irq;
return IRQ_HANDLED; return IRQ_HANDLED;
...@@ -380,7 +380,7 @@ static irqreturn_t __init probe_intr(int irq, void *dev_id) ...@@ -380,7 +380,7 @@ static irqreturn_t __init probe_intr(int irq, void *dev_id)
* and then looking to see what interrupt actually turned up. * and then looking to see what interrupt actually turned up.
*/ */
static int __init __maybe_unused NCR5380_probe_irq(struct Scsi_Host *instance, static int __maybe_unused NCR5380_probe_irq(struct Scsi_Host *instance,
int possible) int possible)
{ {
struct NCR5380_hostdata *hostdata = shost_priv(instance); struct NCR5380_hostdata *hostdata = shost_priv(instance);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment