public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove warning from drivers/net/tokenring/smctr.c
@ 2000-12-08 20:52 Rasmus Andersen
  0 siblings, 0 replies; only message in thread
From: Rasmus Andersen @ 2000-12-08 20:52 UTC (permalink / raw)
  To: jschlst; +Cc: linux-kernel

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.)

--- linux-240-t12-pre3-clean/drivers/net/tokenring/smctr.c	Sat Nov  4 23:27:09 2000
+++ linux/drivers/net/tokenring/smctr.c	Wed Nov 29 19:29:11 2000
@@ -21,9 +21,10 @@
  */
 
 static const char *version = "smctr.c: v1.1 1/1/00 by jschlst@turbolinux.com\n";
-static const char *cardname = "smctr";
 
 #ifdef MODULE
+static const char *cardname = "smctr";
+
 #include <linux/module.h>
 #include <linux/version.h>
 #endif

-- 
        Rasmus(rasmus@jaquet.dk)

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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

only message in thread, other threads:[~2000-12-08 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-08 20:52 [PATCH] remove warning from drivers/net/tokenring/smctr.c Rasmus Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox