Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce441594 authored by Harald Welte's avatar Harald Welte Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: fix usbdevice_fs header breakage



[USBDEVFS] fix inclusion of <linux/compat.h> to avoud header mess

Without moving the include of compat.h down, userspace programs that use
usbdevice_fs.h end up including half the kernel includes (and eventually
fail to compile).

Signed-off-by: default avatarHarald Welte <laforge@netfilter.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e1c37b8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@
#define _LINUX_USBDEVICE_FS_H

#include <linux/types.h>
#include <linux/compat.h>

/* --------------------------------------------------------------------- */

@@ -125,6 +124,7 @@ struct usbdevfs_hub_portinfo {
};

#ifdef CONFIG_COMPAT
#include <linux/compat.h>
struct usbdevfs_urb32 {
	unsigned char type;
	unsigned char endpoint;