[Compile Regression in 2.4.25-pre8][PATCH 4/42]

Kronos
2004-02-02T18:23:04Z

aha1542.c:114: warning: `setup_str' defined but not used

Move setup_str inside #ifndef MODULE. The string in not used when the
driver is compiled statically.

diff -Nru -X dontdiff linux-2.4-vanilla/drivers/scsi/aha1542.c linux-2.4/drivers/scsi/aha1542.c
--- linux-2.4-vanilla/drivers/scsi/aha1542.c Sat Oct 13 00:35:53 2001
+++ linux-2.4/drivers/scsi/aha1542.c Sat Jan 31 16:25:17 2004
@@ -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>]]
*
@@ -960,6 +958,7 @@

#ifndef MODULE
static int setup_idx = 0;
+static char *setup_str[MAXBOARDS] __initdata;

void __init aha1542_setup(char *str, int *ints)
{

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
Il piu` bel momento dell'amore e` quando ci si illude che duri per
sempre; il piu` brutto, quando ci si accorge che dura da troppo.