Re: 2.5.15 warnings

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Fri May 10 2002 - 06:49:37 EST


Keith Owens wrote:
> drivers/char/ftape/zftape/zftape-init.c: In function `zft_open':
> drivers/char/ftape/zftape/zftape-init.c:116: warning: passing arg 2 of `test_and_set_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c:122: warning: passing arg 2 of `clear_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c:130: warning: passing arg 2 of `clear_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c: In function `zft_close':
> drivers/char/ftape/zftape/zftape-init.c:149: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c:159: warning: passing arg 2 of `clear_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c: In function `zft_ioctl':
> drivers/char/ftape/zftape/zftape-init.c:172: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c: In function `zft_mmap':
> drivers/char/ftape/zftape/zftape-init.c:192: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c: In function `zft_read':
> drivers/char/ftape/zftape/zftape-init.c:222: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
> drivers/char/ftape/zftape/zftape-init.c: In function `zft_write':
> drivers/char/ftape/zftape/zftape-init.c:245: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type

This patch silences the zftape warnings. (Dave: please include in the next -dj)

/Mikael

--- linux-2.5.15/drivers/char/ftape/zftape/zftape-init.c.~1~ Wed Feb 20 03:11:00 2002
+++ linux-2.5.15/drivers/char/ftape/zftape/zftape-init.c Fri May 10 01:54:40 2002
@@ -67,7 +67,7 @@
 
 /* Local vars.
  */
-static int busy_flag;
+static unsigned long busy_flag;
 
 static sigset_t orig_sigmask;
 
-
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 May 14 2002 - 12:00:13 EST