[lkml]   [2000]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] remove warning from drivers/net/tokenring/smctr.c

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\n";
-static const char *cardname = "smctr";

#ifdef MODULE
+static const char *cardname = "smctr";
#include <linux/module.h>
#include <linux/version.h>

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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:51    [W:0.036 / U:1.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site