Make usbdevice_fs.h (again) useable from userspace
PATCH 1/1 Make usbdevice_fs.h (again) useable from userspace
Make usbdevice_fs.h (again) useable from userspace
If we have CONFIG_COMPAT enabled, then userspace programs using usbdevice_fs.h won't compile anymore.
---
commit 17c6b20f34d9d68918346af2a2eb6433b09af0e3
tree 397763d1e6776163d45d97702a54d352295940c2
parent b3d70298da3a00f29dd82cf16c1f13407ad2ac09
author Harald Welte <[email protected]> Mon, 14 Nov 2005 18:34:23 +0100 committer Harald Welte <[email protected]> Mon, 14 Nov 2005 18:34:23 +0100
include/linux/usbdevice_fs.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/usbdevice_fs.h +2 -0
@@ -123,6 +123,7 @@ struct usbdevfs_hub_portinfo {char port [127 ];/* e.g. port 3 connects to device 27 */ }; +#ifdef __KERNEL__#ifdef CONFIG_COMPAT #include <linux/compat.h> struct usbdevfs_urb32 {
@@ -147,6 +148,7 @@ struct usbdevfs_ioctl32 {compat_caddr_t data; };#endif +#endif #define USBDEVFS_CONTROL _IOWR('U', 0, struct usbdevfs_ctrltransfer)#define USBDEVFS_BULK _IOWR('U', 2, struct usbdevfs_bulktransfer)
Signature · 4 lines
- Harald Welte <[email protected]> http://gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)
Quoted 4 lines · Harald Welte
Make
usbdevice_fs.h(again) useable from userspaceIf we have
CONFIG_COMPATenabled, then userspace programs usingusbdevice_fs.hwon't compile anymore.
how does the userspace application set CONFIG_COMPAT??
Quoted 7 lines · Arjan van de Ven
Quoted 4 lines · Harald Welte
Make
usbdevice_fs.h(again) useable from userspaceIf we have
CONFIG_COMPATenabled, then userspace programs usingusbdevice_fs.hwon't compile anymore.how does the userspace application set
CONFIG_COMPAT??
duh. good question. Seems like the application was broken by somehow including config.h, so we can safely ignore this. Sorry for the noise.
Signature · 4 lines
- Harald Welte <[email protected]> http://gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)