From: Marcin Slusarz Date: Sun, 16 Dec 2007 02:23:20 +0000 (+0100) Subject: USB: usbdevfs_urb: __user annotation X-Git-Tag: v2.6.25-rc1~1075^2~56 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f9705b04c1638b3682f63ece7931384f4542f17;p=linux-2.6 USB: usbdevfs_urb: __user annotation 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] * Signed-off-by: Marcin Slusarz Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usbdevice_fs.h b/include/linux/usbdevice_fs.h index 8ca5a7fbc9..17cb108b7d 100644 --- a/include/linux/usbdevice_fs.h +++ b/include/linux/usbdevice_fs.h @@ -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]; };