Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Harald Welte <laforge@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Harald Welte and committed by
Greg Kroah-Hartman
ce441594 e1c37b8d

+1 -1
+1 -1
include/linux/usbdevice_fs.h
··· 32 32 #define _LINUX_USBDEVICE_FS_H 33 33 34 34 #include <linux/types.h> 35 - #include <linux/compat.h> 36 35 37 36 /* --------------------------------------------------------------------- */ 38 37 ··· 124 125 }; 125 126 126 127 #ifdef CONFIG_COMPAT 128 + #include <linux/compat.h> 127 129 struct usbdevfs_urb32 { 128 130 unsigned char type; 129 131 unsigned char endpoint;