All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix aha1542.c setup_str[] not protected by #ifndef MODULE
@ 2002-02-08  6:50 William Lee Irwin III
  0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-02-08  6:50 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel

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

--- linux/drivers/scsi/aha1542.c.orig	Thu Feb  7 22:34:49 2002
+++ linux/drivers/scsi/aha1542.c	Thu Feb  7 22:35:30 2002
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-08  6:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-08  6:50 [PATCH] fix aha1542.c setup_str[] not protected by #ifndef MODULE William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.