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

From: Kronos
Date: Mon Feb 02 2004 - 13:26:12 EST


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@xxxxxxxxxxxxxx
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/