2.5.9 compile warnings/errors

From: Frank Davis (fdavis@si.rr.com)
Date: Mon Apr 22 2002 - 21:42:53 EST


Hello all,
 While 'make bzImage', I received the following set of errors (I didn't
see them posted on l-k yet. If I missed them, sorry in advance.)

Regards,
Frank

ppp_generic.c: In function `ppp_read':
ppp_generic.c:381: warning: `ret' might be used uninitialized in this function
[a possible solution below]

--- drivers/net/ppp_generic.c.old Mon Apr 15 20:58:16 2002
+++ drivers/net/ppp_generic.c Mon Apr 22 22:01:32 2002
@@ -381,6 +381,8 @@
         ssize_t ret;
         struct sk_buff *skb = 0;
 
+ ret = count;
+
         if (pf == 0)
                 return -ENXIO;
         add_wait_queue(&pf->rwait, &wait);

[a few files had the same warning in the below directory]
resources.c: In function `unlink_vcc':
resources.c:199: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
resources.c:199: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
clip.c:732: warning: passing arg 2 of `set_bit' from incompatible pointer type
clip.c:733: warning: passing arg 2 of `set_bit' from incompatible pointer type
make[3]: Leaving directory `/usr/src/linux/net/atm'

dev.c: In function `netif_receive_skb':
dev.c:1465: void value not ignored as it ought to be
make[3]: *** [dev.o] Error 1
make[3]: Leaving directory `/usr/src/linux/net/core'
make[2]: *** [first_rule] Error 2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 23 2002 - 22:00:34 EST