* [PATCH] 2.6.0: ioctl related warnings in userspace
@ 2003-12-18 14:43 Johannes Stezenbach
0 siblings, 0 replies; only message in thread
From: Johannes Stezenbach @ 2003-12-18 14:43 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Hi,
the patch below (2nd resend) removes warnings like:
warning: signed and unsigned type in conditional expression
when compiling userspace applications against a glibc built with 2.6
kernel headers (like on Debian unstable). Please apply.
Regards,
Johannes
diff -rN -u4 linux-2.6.0.orig/include/asm-i386/ioctl.h linux-2.6.0/include/asm-i386/ioctl.h
--- linux-2.6.0.orig/include/asm-i386/ioctl.h 2003-11-12 16:49:14.000000000 +0100
+++ linux-2.6.0/include/asm-i386/ioctl.h 2003-11-12 16:51:38.000000000 +0100
@@ -52,9 +52,9 @@
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
/* provoke compile error for invalid uses of size argument */
-extern int __invalid_size_argument_for_IOC;
+extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
diff -rN -u4 linux-2.6.0.orig/include/asm-parisc/ioctl.h linux-2.6.0/include/asm-parisc/ioctl.h
--- linux-2.6.0.orig/include/asm-parisc/ioctl.h 2003-11-12 16:49:14.000000000 +0100
+++ linux-2.6.0/include/asm-parisc/ioctl.h 2003-11-12 16:51:24.000000000 +0100
@@ -44,9 +44,9 @@
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
/* provoke compile error for invalid uses of size argument */
-extern int __invalid_size_argument_for_IOC;
+extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
diff -rN -u4 linux-2.6.0.orig/include/asm-ppc/ioctl.h linux-2.6.0/include/asm-ppc/ioctl.h
--- linux-2.6.0.orig/include/asm-ppc/ioctl.h 2003-11-12 16:49:14.000000000 +0100
+++ linux-2.6.0/include/asm-ppc/ioctl.h 2003-11-12 16:51:34.000000000 +0100
@@ -37,9 +37,9 @@
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
/* provoke compile error for invalid uses of size argument */
-extern int __invalid_size_argument_for_IOC;
+extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
diff -rN -u4 linux-2.6.0.orig/include/asm-ppc64/ioctl.h linux-2.6.0/include/asm-ppc64/ioctl.h
--- linux-2.6.0.orig/include/asm-ppc64/ioctl.h 2003-11-12 16:49:14.000000000 +0100
+++ linux-2.6.0/include/asm-ppc64/ioctl.h 2003-11-12 16:51:28.000000000 +0100
@@ -42,9 +42,9 @@
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
/* provoke compile error for invalid uses of size argument */
-extern int __invalid_size_argument_for_IOC;
+extern unsigned int __invalid_size_argument_for_IOC;
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-18 14:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-18 14:43 [PATCH] 2.6.0: ioctl related warnings in userspace Johannes Stezenbach
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.