[SCSI] sun3: sun3scsi_detect() and NCR5380_init() should be __init
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Jun 2011 18:39:18 +0000 (20:39 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 20:13:25 +0000 (15:13 -0500)
WARNING: vmlinux.o(.text+0x18545c): Section mismatch in reference from the function sun3scsi_detect() to the function .init.text:NCR5380_print_options()
WARNING: vmlinux.o(.text+0x18556c): Section mismatch in reference from the function sun3scsi_detect() to the function .init.text:NCR5380_print_options()
WARNING: vmlinux.o(.text+0x187692): Section mismatch in reference from the function sun3scsi_detect() to the function .init.text:NCR5380_print_options()
WARNING: vmlinux.o(.text+0x187770): Section mismatch in reference from the function sun3scsi_detect() to the function .init.text:NCR5380_print_options()

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/sun3_NCR5380.c
drivers/scsi/sun3_scsi.c
drivers/scsi/sun3_scsi_vme.c

index 29c8246f5e76dd16e04c1b2536cbc0962f71be90..0d04c3a00db9c3ba830d5a15712edaed53399419 100644 (file)
@@ -842,7 +842,7 @@ static char *lprint_Scsi_Cmnd(struct scsi_cmnd *cmd, char *pos, char *buffer,
  * 
  */
 
-static int NCR5380_init (struct Scsi_Host *instance, int flags)
+static int __init NCR5380_init(struct Scsi_Host *instance, int flags)
 {
     int i;
     SETUP_HOSTDATA(instance);
index 613f5880d1357656c774e50cd09c0f14f584b836..2ad6b91d71eb73b7a0217f6b35239c9a74b4b138 100644 (file)
@@ -195,7 +195,7 @@ static struct Scsi_Host *default_instance;
  *
  */
  
-int sun3scsi_detect(struct scsi_host_template * tpnt)
+int __init sun3scsi_detect(struct scsi_host_template * tpnt)
 {
        unsigned long ioaddr;
        static int called = 0;
index 7c526b8e30ac2d65c67396c4172ccb7fb1ec35be..cd6d7790c3733b8b93ffe4d7e060a05f3a700376 100644 (file)
@@ -137,7 +137,7 @@ static struct Scsi_Host *default_instance;
  *
  */
  
-static int sun3scsi_detect(struct scsi_host_template * tpnt)
+static int __init sun3scsi_detect(struct scsi_host_template * tpnt)
 {
        unsigned long ioaddr, irq = 0;
        static int called = 0;