[PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn'tcompile
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.cSun 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:[EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
[PATCH] net/ax25/sysctl_net_ax25.c Re: 2.4.0-test11-pre3 doesn'tcompile
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.cSun 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:[EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/