Skip to contentSkip to conversation

remove warnings from drivers/net/eepro.c (240-test12-pre7)

PATCH New Rasmus Andersen 1 participant 1 message Dec 8, 2000 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove warnings from drivers/net/eepro.c (240-test12-pre7)

(I sent the following to [email protected], but forgot to cc linux-kernel).

Hi.

The following patch removes some 'defined but not used' warnings when compiling drivers/net/eepro.c (240t12p7) without modular support.

drivers/net/eepro.c +3 -3
@@ -1727,6 +1727,8 @@
 		eepro_complete_selreset(ioaddr);
 }
 
+#ifdef MODULE
+
 #define MAX_EEPRO 8
 static struct net_device dev_eepro[MAX_EEPRO];
 
@@ -1737,7 +1739,7 @@
 };
 static int autodetect;
 
-static int n_eepro = 0;
+static int n_eepro;
 /* For linux 2.1.xx */
 
 MODULE_AUTHOR("Pascal Dupuis <[email protected]> for the 2.1 stuff (locking,...)");
@@ -1746,8 +1748,6 @@
 MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_EEPRO) "i");
 MODULE_PARM(mem, "1-" __MODULE_STRING(MAX_EEPRO) "i");
 MODULE_PARM(autodetect, "1-" __MODULE_STRING(1) "i");
-
-#ifdef MODULE
 
 int 
 init_module(void)
Signature · 17 lines
Regards,
        Rasmus([email protected])

I've always found profanity to be refuge of the inarticulate motherfucker.
  --Anonymous

----- End forwarded message -----

-- 
        Rasmus([email protected])

Without censorship, things can get terribly confused in the
public mind. -General William Westmoreland, during the war in Viet Nam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/