Don't export CONFIG_COMPAT stuff in linux/usbdevice_fs.h to userspace

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
David Woodhouse 2006-04-25 15:14:50 +01:00
parent 468db83658
commit eae19a762d
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,7 @@ struct usbdevfs_hub_portinfo {
char port [127]; /* e.g. port 3 connects to device 27 */ char port [127]; /* e.g. port 3 connects to device 27 */
}; };
#ifdef __KERNEL__
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
#include <linux/compat.h> #include <linux/compat.h>
struct usbdevfs_urb32 { struct usbdevfs_urb32 {
@ -147,6 +148,7 @@ struct usbdevfs_ioctl32 {
compat_caddr_t data; compat_caddr_t data;
}; };
#endif #endif
#endif /* __KERNEL__ */
#define USBDEVFS_CONTROL _IOWR('U', 0, struct usbdevfs_ctrltransfer) #define USBDEVFS_CONTROL _IOWR('U', 0, struct usbdevfs_ctrltransfer)
#define USBDEVFS_BULK _IOWR('U', 2, struct usbdevfs_bulktransfer) #define USBDEVFS_BULK _IOWR('U', 2, struct usbdevfs_bulktransfer)