]> err.no Git - linux-2.6/commitdiff
USB: usbdevfs_urb: __user annotation
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 16 Dec 2007 02:23:20 +0000 (03:23 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:58 +0000 (14:34 -0800)
fix warning:
drivers/usb/core/devio.c:1226:20: warning: incorrect type in assignment (different address spaces)
drivers/usb/core/devio.c:1226:20:    expected void *usercontext
drivers/usb/core/devio.c:1226:20:    got void [noderef] <asn:1>*

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/usbdevice_fs.h

index 8ca5a7fbc9ecaf38d8baefa7da3618aadd628828..17cb108b7db038558ef4e49337503c1217d8592a 100644 (file)
@@ -104,7 +104,7 @@ struct usbdevfs_urb {
        int error_count;
        unsigned int signr;     /* signal to be sent on completion,
                                  or 0 if none should be sent. */
-       void *usercontext;
+       void __user *usercontext;
        struct usbdevfs_iso_packet_desc iso_frame_desc[0];
 };