Skip to content

Commit

Permalink
[PATCH] USB: fix usbdevice_fs header breakage
Browse files Browse the repository at this point in the history
[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: Harald Welte <laforge@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Harald Welte authored and Greg Kroah-Hartman committed Sep 12, 2005
1 parent e1c37b8 commit ce44159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usbdevice_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#define _LINUX_USBDEVICE_FS_H

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

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

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

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

0 comments on commit ce44159

Please sign in to comment.