Commit 9d02c2be authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: lots of sparse fixups for usbfs

parent 872b2a59
This diff is collapsed.
...@@ -46,14 +46,14 @@ struct usbdevfs_ctrltransfer { ...@@ -46,14 +46,14 @@ struct usbdevfs_ctrltransfer {
__u16 wIndex; __u16 wIndex;
__u16 wLength; __u16 wLength;
__u32 timeout; /* in milliseconds */ __u32 timeout; /* in milliseconds */
void *data; void __user *data;
}; };
struct usbdevfs_bulktransfer { struct usbdevfs_bulktransfer {
unsigned int ep; unsigned int ep;
unsigned int len; unsigned int len;
unsigned int timeout; /* in milliseconds */ unsigned int timeout; /* in milliseconds */
void *data; void __user *data;
}; };
struct usbdevfs_setinterface { struct usbdevfs_setinterface {
...@@ -97,7 +97,7 @@ struct usbdevfs_urb { ...@@ -97,7 +97,7 @@ struct usbdevfs_urb {
unsigned char endpoint; unsigned char endpoint;
int status; int status;
unsigned int flags; unsigned int flags;
void *buffer; void __user *buffer;
int buffer_length; int buffer_length;
int actual_length; int actual_length;
int start_frame; int start_frame;
...@@ -113,7 +113,7 @@ struct usbdevfs_ioctl { ...@@ -113,7 +113,7 @@ struct usbdevfs_ioctl {
int ifno; /* interface 0..N ; negative numbers reserved */ int ifno; /* interface 0..N ; negative numbers reserved */
int ioctl_code; /* MUST encode size + direction of data so the int ioctl_code; /* MUST encode size + direction of data so the
* macros in <asm/ioctl.h> give correct values */ * macros in <asm/ioctl.h> give correct values */
void *data; /* param buffer (in, or out) */ void __user *data; /* param buffer (in, or out) */
}; };
/* You can do most things with hubs just through control messages, /* You can do most things with hubs just through control messages,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment