[PATCH v2] <linux/usb/gadget.h>: add missing #include's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When #include'd alone, <linux/usb/gadget.h> causes a lot of compilation errors
and warnings -- all because it relies on the including code to bring in the
necessary #include's instead of doing this itself.

Signed-off-by: Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx>

---
The patch is against the 'usb-next' branch of Greg KH's usb-2.6.git...
It has been updated to apply after Mark Brown's recent patch to that same file
which only added #include <linux/usb/ch9.h>.

 include/linux/usb/gadget.h |    5 +++++
 1 file changed, 5 insertions(+)

Index: usb-2.6/include/linux/usb/gadget.h
===================================================================
--- usb-2.6.orig/include/linux/usb/gadget.h
+++ usb-2.6/include/linux/usb/gadget.h
@@ -15,7 +15,12 @@
 #ifndef __LINUX_USB_GADGET_H
 #define __LINUX_USB_GADGET_H
 
+#include <linux/device.h>
+#include <linux/errno.h>
+#include <linux/init.h>
+#include <linux/list.h>
 #include <linux/slab.h>
+#include <linux/types.h>
 #include <linux/usb/ch9.h>
 
 struct usb_ep;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux