Skip to contentSkip to conversation

remove warning from drivers/net/tokenring/smctr.c

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove warning from drivers/net/tokenring/smctr.c

Hi.

This patch makes a 'defined but not used' warning go away when compiling drivers/net/tokenring/smctr.c without module support (kernel 240t12p3). (It should apply cleanly.)

drivers/net/tokenring/smctr.c +2 -1
@@ -21,9 +21,10 @@
  */
 
 static const char *version = "smctr.c: v1.1 1/1/00 by [email protected]\n";
-static const char *cardname = "smctr";
 
 #ifdef MODULE
+static const char *cardname = "smctr";
+
 #include <linux/module.h>
 #include <linux/version.h>
 #endif
Signature · 8 lines
        Rasmus([email protected])

China is a big country, inhabited by many Chinese.
-Former French President Charles de Gaulle
-
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/