Skip to content

Commit eae19a7

Browse files
committed
Don't export CONFIG_COMPAT stuff in linux/usbdevice_fs.h to userspace
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
1 parent 468db83 commit eae19a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/usbdevice_fs.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ struct usbdevfs_hub_portinfo {
123123
char port [127]; /* e.g. port 3 connects to device 27 */
124124
};
125125

126+
#ifdef __KERNEL__
126127
#ifdef CONFIG_COMPAT
127128
#include <linux/compat.h>
128129
struct usbdevfs_urb32 {
@@ -147,6 +148,7 @@ struct usbdevfs_ioctl32 {
147148
compat_caddr_t data;
148149
};
149150
#endif
151+
#endif /* __KERNEL__ */
150152

151153
#define USBDEVFS_CONTROL _IOWR('U', 0, struct usbdevfs_ctrltransfer)
152154
#define USBDEVFS_BULK _IOWR('U', 2, struct usbdevfs_bulktransfer)

0 commit comments

Comments
 (0)