lkml.org 
[lkml]   [2002]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: 2.5.15 warnings
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/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.083 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site