From: Jeff Garzik <jgarzik@pobox.com>
To: Adrian Bunk <bunk@fs.tum.de>
Cc: lkml <linux-kernel@vger.kernel.org>, Linus Torvalds <torvalds@osdl.org>
Subject: [PATCH] Re: 2.4.23-pre2: 3c515.c doesn't compile non-modular
Date: Tue, 02 Sep 2003 13:47:33 -0400 [thread overview]
Message-ID: <3F54D7B5.8060203@pobox.com> (raw)
In-Reply-To: <20030902164917.GM23729@fs.tum.de>
[-- Attachment #1: Type: text/plain, Size: 1545 bytes --]
Adrian Bunk wrote:
> On Sat, Aug 30, 2003 at 12:48:22PM -0300, Marcelo Tosatti wrote:
>
>>...
>>Summary of changes from v2.4.23-pre1 to v2.4.23-pre2
>>============================================
>>...
>>Jeff Garzik:
>>...
>> o [netdrvr] ethtool_ops support for 3c515, 3c523, 3c527, and dmfe
>>...
>
>
> This change broke non-modular compile of 3c515.c ("debug" is declared
> inside an #ifdef MODULE):
I'm pretty impressed that it broke, actually. "debug" is a weird
pseudo-variable that's really another global variable underneath,
corkscrew_debug... but MODULE_PARM() uses "debug". Sigh.
Further encouragement for me to convert net drivers over to Rusty's new
module parameter stuff, I suppose. His stuff is at least type-checked,
and would have caught this problem -- a big advantage over the 2.4.x
MODULE_PARM() stuff.
> ...
> gcc -D__KERNEL__
> -I/home/bunk/linux/kernel-2.4/linux-2.4.23-pre2-full/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=3c515 -c -o 3c515.o 3c515.c
> 3c515.c: In function `netdev_get_msglevel':
> 3c515.c:1621: error: `debug' undeclared (first use in this function)
> 3c515.c:1621: error: (Each undeclared identifier is reported only once
> 3c515.c:1621: error: for each function it appears in.)
> 3c515.c: In function `netdev_set_msglevel':
> 3c515.c:1626: error: `debug' undeclared (first use in this function)
Fixed. Linus, please apply.
Jeff
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 459 bytes --]
===== drivers/net/3c515.c 1.22 vs edited =====
--- 1.22/drivers/net/3c515.c Tue Aug 26 16:42:22 2003
+++ edited/drivers/net/3c515.c Tue Sep 2 13:44:18 2003
@@ -1590,12 +1590,12 @@
static u32 netdev_get_msglevel(struct net_device *dev)
{
- return debug;
+ return corkscrew_debug;
}
static void netdev_set_msglevel(struct net_device *dev, u32 level)
{
- debug = level;
+ corkscrew_debug = level;
}
static struct ethtool_ops netdev_ethtool_ops = {
next prev parent reply other threads:[~2003-09-02 17:55 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-30 15:48 Linux 2.4.23-pre2 Marcelo Tosatti
2003-08-30 16:22 ` Dave Bentham
2003-08-30 19:35 ` system_lists
2003-08-30 22:05 ` [PATCH] check_gcc for i386 J.A. Magallon
2003-08-30 22:58 ` Marcelo Tosatti
2003-08-30 23:20 ` Norberto BENSA
2003-08-31 2:39 ` Marcelo Tosatti
2003-08-30 23:31 ` J.A. Magallon
2003-08-30 23:37 ` Alan Cox
2003-08-31 0:47 ` Jeff Garzik
2003-08-31 0:59 ` Kurt Wall
2003-08-31 3:03 ` Marcelo Tosatti
2003-09-01 19:14 ` Marcelo Tosatti
2003-08-30 23:01 ` Andre Tomt
2003-08-30 23:11 ` Linux 2.4.23-pre2 - airo.c compile failure Eyal Lebedinsky
2003-09-03 15:56 ` [patch] fix airo.c compile failure with gcc 2.95 Adrian Bunk
2003-09-03 16:33 ` Jeff Garzik
2003-08-31 9:21 ` [PATCH] correct AT_PLATFORM for HT cpus J.A. Magallon
2003-09-02 15:18 ` [patch] 2.4.23-pre2: fix rocket.c compilation Adrian Bunk
2003-09-02 16:49 ` 2.4.23-pre2: 3c515.c doesn't compile non-modular Adrian Bunk
2003-09-02 17:47 ` Jeff Garzik [this message]
2003-10-15 17:32 ` airo regression with Linux 2.4.23-pre2 Udo A. Steinberg
2003-10-15 19:47 ` Celso González
2003-10-15 21:27 ` Javier Achirica
2003-10-16 13:51 ` Udo A. Steinberg
2003-10-16 14:52 ` Marc Giger
2003-10-19 15:19 ` Joseph Pingenot
2003-10-20 10:33 ` Javier Achirica
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=3F54D7B5.8060203@pobox.com \
--to=jgarzik@pobox.com \
--cc=bunk@fs.tum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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