From: Rasmus Andersen <rasmus@jaquet.dk>
To: jschlst@turbolinux.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] remove warning from drivers/net/tokenring/smctr.c
Date: Fri, 8 Dec 2000 21:52:08 +0100 [thread overview]
Message-ID: <20001208215208.J599@jaquet.dk> (raw)
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/
reply other threads:[~2000-12-08 21:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001208215208.J599@jaquet.dk \
--to=rasmus@jaquet.dk \
--cc=jschlst@turbolinux.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).