From: Adrian Bunk <bunk@fs.tum.de>
To: Marcelo Tosatti <marcelo@conectiva.com.br>,
Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.21-pre4
Date: Sun, 2 Feb 2003 12:06:17 +0100 [thread overview]
Message-ID: <20030202110617.GJ6915@fs.tum.de> (raw)
In-Reply-To: <Pine.LNX.4.53L.0301290143350.27119@freak.distro.conectiva>
On Wed, Jan 29, 2003 at 01:44:49AM -0200, Marcelo Tosatti wrote:
>...
> Summary of changes from v2.4.21-pre3 to v2.4.21-pre4
> ============================================
>...
> Alan Cox <alan@lxorguk.ukuu.org.uk>:
>...
> o fix packet padding on the 3c523
>...
This causes the following compile error:
<-- snip -->
...
gcc -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.20-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=3c523 -c -o 3c523.o 3c523.c
3c523.c:1128: macro `memset' used with just one arg
3c523.c: In function `elmc_send_packet':
3c523.c:1128: parse error before `)'
3c523.c:1128: structure has no member named `xmit'
3c523.c:1128: parse error before `)'
3c523.c:1128: parse error before `)'
3c523.c:1128: parse error before `)'
3c523.c:1128: warning: left-hand operand of comma expression has no effect
3c523.c:1128: warning: left-hand operand of comma expression has no effect
3c523.c:1128: parse error before `:'
make[3]: *** [3c523.o] Error 1
make[3]: Leaving directory `/home/bunk/linux/kernel-2.4/linux-2.4.20-full/drivers/net'
<-- snip -->
The simple fix (stolen from -ac) is:
--- linux.21pre4/drivers/net/3c523.c 2003-01-29 17:07:45.000000000 +0000
+++ linux.21pre4-ac1/drivers/net/3c523.c 2003-01-09 00:47:04.000000000 +0000
@@ -1125,7 +1125,7 @@
len = (ETH_ZLEN < skb->len) ? skb->len : ETH_ZLEN;
if(len != skb->len)
- memset((char *) p->xmit_cbuffs[p->xmit)count], 0, ETH_ZLEN);
+ memset((char *) p->xmit_cbuffs[p->xmit_count], 0, ETH_ZLEN);
memcpy((char *) p->xmit_cbuffs[p->xmit_count], (char *) (skb->data), skb->len);
#if (NUM_XMIT_BUFFS == 1)
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2003-02-02 10:56 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-29 3:44 Marcelo Tosatti
2003-01-29 6:29 ` John Kim
2003-01-29 8:03 ` Denis Vlasenko
2003-01-29 9:36 ` Alan Cox
2003-01-29 12:49 ` Eyal Lebedinsky
2003-01-29 13:04 ` Maciej Soltysiak
2003-01-29 21:53 ` Thomas Davis
2003-01-30 11:43 ` Alan Cox
2003-01-30 17:09 ` Thomas Davis
2003-01-30 18:17 ` Alan Cox
2003-01-30 17:26 ` Thomas Davis
2003-01-30 18:28 ` Alan Cox
2003-01-30 17:53 ` Thomas Davis
2003-01-30 19:35 ` Alan Cox
2003-01-30 18:46 ` Thomas Davis
2003-01-30 23:13 ` Martin K. Petersen
2003-01-30 23:30 ` Thomas Davis
2003-01-31 3:14 ` Thomas Davis
2003-01-31 4:09 ` Martin K. Petersen
2003-01-31 4:13 ` Thomas Davis
2003-01-31 4:31 ` Martin K. Petersen
2003-01-31 4:48 ` Thomas Davis
2003-01-31 6:16 ` Thomas Davis
2003-01-30 0:47 ` sys_sendfile64 not in " John Fremlin
2003-01-30 8:29 ` Christoph Hellwig
2003-01-30 11:33 ` Alan Cox
2003-01-30 11:02 ` Marc-Christian Petersen
2003-01-30 11:16 ` Christoph Hellwig
2003-02-01 23:24 ` Adrian Bunk
2003-02-02 11:06 ` Adrian Bunk [this message]
2003-02-02 13:38 ` Alan Cox
2003-02-10 16:08 ` Jörn Engel
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=20030202110617.GJ6915@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@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
Powered by JetHome