From: Adrian Bunk <bunk@fs.tum.de>
To: Eyal Lebedinsky <eyal@eyal.emu.id.au>,
Javier Achirica <achirica@users.sourceforge.net>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
lkml <linux-kernel@vger.kernel.org>,
linux-net@vger.kernel.org, jgarzik@pobox.com
Subject: [patch] fix airo.c compile failure with gcc 2.95
Date: Wed, 3 Sep 2003 17:56:56 +0200 [thread overview]
Message-ID: <20030903155655.GB23729@fs.tum.de> (raw)
In-Reply-To: <3F512F33.44537860@eyal.emu.id.au>
On Sun, Aug 31, 2003 at 09:11:47AM +1000, Eyal Lebedinsky wrote:
> Marcelo Tosatti wrote:
> >
> > Hello,
> >
> > Here goes -pre2. It contains an USB update, PPC merge, m68k merge, IDE
>
> gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre/include -Wall
> -Wstrict-pro
> totypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer
> -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4
> -DMODULE -DM
> ODVERSIONS -include
> /data2/usr/local/src/linux-2.4-pre/include/linux/modversions
> .h -nostdinc -iwithprefix include -DKBUILD_BASENAME=airo
> -DEXPORT_SYMTAB -c ai
> ro.c
> airo.c: In function `airo_get_power':
> airo.c:5659: parse error before `int'
> airo.c:5660: `mode' undeclared (first use in this function)
> airo.c:5660: (Each undeclared identifier is reported only once
> airo.c:5660: for each function it appears in.)
> airo.c: In function `writerids':
> airo.c:6673: warning: unused variable `enabled'
> make[3]: *** [airo.o] Error 1
> make[3]: Leaving directory
> `/data2/usr/local/src/linux-2.4-pre/drivers/net/wirel
> ess'
>
> Cannot tell if it is a bad merge ('int mode =' line should be earlier?)
> or bad programming (declaration must come first).
I assume you are using gcc 2.95?
The patch below fixes it for both 2.6 and 2.4.
I've tested the compilation with 2.6.0-test4-mm5 and gcc 2.95.
cu
Adrian
--- linux-2.6.0-test4-mm5-modular-no-smp/drivers/net/wireless/airo.c.old 2003-09-03 17:41:16.000000000 +0200
+++ linux-2.6.0-test4-mm5-modular-no-smp/drivers/net/wireless/airo.c 2003-09-03 17:41:45.000000000 +0200
@@ -5662,9 +5662,10 @@
char *extra)
{
struct airo_info *local = dev->priv;
+ int mode;
readConfigRid(local, 1);
- int mode = local->config.powerSaveMode;
+ mode = local->config.powerSaveMode;
if ((vwrq->disabled = (mode == POWERSAVE_CAM)))
return 0;
if ((vwrq->flags & IW_POWER_TYPE) == IW_POWER_TIMEOUT) {
next prev parent reply other threads:[~2003-09-03 15:58 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 ` Adrian Bunk [this message]
2003-09-03 16:33 ` [patch] fix airo.c compile failure with gcc 2.95 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 ` [PATCH] " Jeff Garzik
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=20030903155655.GB23729@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=achirica@users.sourceforge.net \
--cc=eyal@eyal.emu.id.au \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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
all inboxes | Powered by JetHome®