lkml.org 
[lkml]   [2000]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.044 / U:7.336 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site