Skip to content

Commit

Permalink
[SCSI] sun3: sun3scsi_detect() and NCR5380_init() should be __init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and James Bottomley committed Jun 29, 2011
1 parent 5db5c50 commit d559c49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/sun3_NCR5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/sun3_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/sun3_scsi_vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d559c49

Please sign in to comment.