From: Geert Uytterhoeven Date: Mon, 13 Jun 2011 18:39:16 +0000 (+0200) Subject: [SCSI] mac_scsi: macscsi_detect() should be __init X-Git-Tag: firefly_0821_release~3680^2~4962^2~63 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=70c26cf3277ce93af74523894700ec20cf7cf6aa;p=firefly-linux-kernel-4.4.55.git [SCSI] mac_scsi: macscsi_detect() should be __init WARNING: vmlinux.o(.text+0x1ecd3e): Section mismatch in reference from the function macscsi_detect() to the function .devinit.text:NCR5380_init() WARNING: vmlinux.o(.text+0x1ecddc): Section mismatch in reference from the function macscsi_detect() to the function .init.text:NCR5380_print_options() WARNING: vmlinux.o(.text+0x1ece60): Section mismatch in reference from the function macscsi_detect() to the function .init.text:NCR5380_print_options() Signed-off-by: Geert Uytterhoeven Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c index bf2a1c516293..67eb7581e430 100644 --- a/drivers/scsi/mac_scsi.c +++ b/drivers/scsi/mac_scsi.c @@ -233,7 +233,7 @@ static struct Scsi_Host *default_instance; * */ -int macscsi_detect(struct scsi_host_template * tpnt) +int __init macscsi_detect(struct scsi_host_template * tpnt) { static int called = 0; int flags = 0;