Skip to contentSkip to conversation

fix aha1542.c setup_str[] not protected by #ifndef MODULE

PATCH New William Lee Irwin III 1 participant 1 message Feb 8, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix aha1542.c setup_str[] not protected by #ifndef MODULE

Well, this at least shuts up a warning coming from aha1542.c setup_str[] is just not needed #ifdef MODULE Not sure what else might be going on with this, but if the patch looks good to you, here it is.

Cheers,
Bill

drivers/scsi/aha1542.c renamed from drivers/scsi/aha1542.c.orig +1 -2
@@ -111,8 +111,6 @@
 static int setup_busoff[MAXBOARDS];
 static int setup_dmaspeed[MAXBOARDS] __initdata = { -1, -1, -1, -1 };
 
-static char *setup_str[MAXBOARDS] __initdata;
-
 /*
  * LILO/Module params:  aha1542=<PORTBASE>[,<BUSON>,<BUSOFF>[,<DMASPEED>]]
  *
@@ -959,6 +957,7 @@
 }
 
 #ifndef MODULE
+static char *setup_str[MAXBOARDS] __initdata;
 static int setup_idx = 0;
 
 void __init aha1542_setup(char *str, int *ints)