Skip to content

Commit

Permalink
USB: usbdevfs_urb: __user annotation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcin Slusarz authored and Greg Kroah-Hartman committed Feb 1, 2008
1 parent 0354c1a commit 7f9705b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usbdevice_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};

Expand Down

0 comments on commit 7f9705b

Please sign in to comment.