linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arjan Filius <arjan@sjoerd.sjoerdnet>
To: f5ibh <f5ibh@db0bm.ampr.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn't compile
Date: Sun, 12 Nov 2000 14:03:27 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.21.0011121400450.1799-100000@sjoerd.sjoerdnet> (raw)
In-Reply-To: <200011121149.MAA22970@db0bm.ampr.org>

Hello,

On Sun, 12 Nov 2000, f5ibh wrote:

> 
> Hi!
> 
> here is the message :
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i586 -DMODULE   -c -o sysctl_net_ax25.o sysctl_net_ax25.c
> sysctl_net_ax25.c: In function `ax25_register_sysctl':
> sysctl_net_ax25.c:117: warning: left-hand operand of comma expression has no
> effect
> sysctl_net_ax25.c:117: parse error before `;'

The folowing patch did fix this for me:
--- ./net/ax25/sysctl_net_ax25.c~	Sun Nov 12 09:31:39 2000
+++ ./net/ax25/sysctl_net_ax25.c	Sun Nov 12 13:45:11 2000
@@ -114,7 +114,7 @@
 	memset(ax25_table, 0x00, ax25_table_size);
 
 	for (n = 0, ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) {
-		ctl_table *child = kmalloc(sizeof(ax25_param_table, GFP_ATOMIC);
+		ctl_table *child = kmalloc(sizeof(ax25_param_table), GFP_ATOMIC);
 		if (!child) {
 			while (n--)
 				kfree(ax25_table[n].child);


Arjan Filius
mailto:iafilius@xs4all.nl

-
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/

      parent reply	other threads:[~2000-11-12 13:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-12 11:49 2.4.0-test11-pre3 doesn't compile f5ibh
2000-11-12 12:12 ` 2.4.0-test11-pre3 doesn't compile (ax25 and md) Arjan Filius
2000-11-12 12:22   ` Jeff Garzik
2000-11-12 14:13     ` Rasmus Andersen
2000-11-12 22:08     ` Eyal Lebedinsky
2000-11-12 13:03 ` Arjan Filius [this message]

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=Pine.LNX.4.21.0011121400450.1799-100000@sjoerd.sjoerdnet \
    --to=arjan@sjoerd.sjoerdnet \
    --cc=f5ibh@db0bm.ampr.org \
    --cc=iafilius@xs4all.nl \
    --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).