staging: usbip: fix header includes
authormatt mooney <mfm@muteddisk.com>
Thu, 12 May 2011 05:33:43 +0000 (22:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 May 2011 16:17:56 +0000 (09:17 -0700)
Modify header directives to include what is needed by each file and
not already included in its own header.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 files changed:
drivers/staging/usbip/stub.h
drivers/staging/usbip/stub_dev.c
drivers/staging/usbip/stub_main.c
drivers/staging/usbip/stub_rx.c
drivers/staging/usbip/stub_tx.c
drivers/staging/usbip/usbip_common.c
drivers/staging/usbip/usbip_common.h
drivers/staging/usbip/usbip_event.c
drivers/staging/usbip/vhci.h
drivers/staging/usbip/vhci_hcd.c
drivers/staging/usbip/vhci_rx.c
drivers/staging/usbip/vhci_sysfs.c
drivers/staging/usbip/vhci_tx.c

index cd3a5bf825c7079f5821ca0f065284bf73f0d099..6592aa2ad15cacaf3b76c3370b0caf7bb0b52bb4 100644 (file)
  * USA.
  */
 
-#include <linux/kernel.h>
 #include <linux/list.h>
-#include <linux/spinlock.h>
 #include <linux/slab.h>
-#include <linux/string.h>
-#include <linux/module.h>
-#include <linux/net.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
+#include <linux/usb.h>
+#include <linux/wait.h>
 
 #define STUB_BUSID_OTHER 0
 #define STUB_BUSID_REMOV 1
index 919d5582f227a7defd3a3f4ab3d9de3597911e63..c71d0a302a8914fcb428877ca0531cfebdfdc535 100644 (file)
@@ -17,7 +17,7 @@
  * USA.
  */
 
-#include <linux/slab.h>
+#include <linux/device.h>
 #include <linux/kthread.h>
 
 #include "usbip_common.h"
index a3c73b2fd288be117ca28b5bb69c3a4bfb8818ca..1f8fc5e8eef8892d0596c450d90f9ecb9906e5a6 100644 (file)
@@ -17,7 +17,7 @@
  * USA.
  */
 
-#include <linux/slab.h>
+#include <linux/string.h>
 
 #include "usbip_common.h"
 #include "stub.h"
index e11ac2a5c6460a03a61a9fe0f05a0dec8517202a..e24560929a88ee9b3f4e0ce3bcd667fed44205aa 100644 (file)
  * USA.
  */
 
-#include <linux/slab.h>
+#include <asm/byteorder.h>
 #include <linux/kthread.h>
+#include <linux/usb.h>
+#include <linux/usb/hcd.h>
 
 #include "usbip_common.h"
 #include "stub.h"
-#include <linux/usb/hcd.h>
 
 static int is_clear_halt_cmd(struct urb *urb)
 {
index fc02261275125d37ba26aaddafa1d1c48cc09744..3c332c2dfd8b668be0224a598b64b63bd74fc6d3 100644 (file)
@@ -17,8 +17,8 @@
  * USA.
  */
 
-#include <linux/slab.h>
 #include <linux/kthread.h>
+#include <linux/socket.h>
 
 #include "usbip_common.h"
 #include "stub.h"
index 6c44fa4aebeff048009cd27bf57d8f6a4fa41550..fb95edfc7e15650c9cf511104417acb4ac238dac 100644 (file)
  * USA.
  */
 
-#include <linux/kernel.h>
+#include <asm/byteorder.h>
 #include <linux/file.h>
-#include <linux/tcp.h>
-#include <linux/in.h>
-#include <linux/kthread.h>
+#include <linux/fs.h>
+#include <linux/kernel.h>
 #include <linux/slab.h>
+#include <net/sock.h>
 
 #include "usbip_common.h"
 
index aa5d576abb6b6f6aaa0f8316b228fa3a8a2dbae3..fd84ab2f9c2c744b0b2647b21d95e81a1c8dff39 100644 (file)
  * USA.
  */
 
-#ifndef __VHCI_COMMON_H
-#define __VHCI_COMMON_H
+#ifndef __USBIP_COMMON_H
+#define __USBIP_COMMON_H
 
-#include <linux/version.h>
 #include <linux/compiler.h>
+#include <linux/device.h>
+#include <linux/interrupt.h>
+#include <linux/net.h>
+#include <linux/printk.h>
+#include <linux/spinlock.h>
+#include <linux/types.h>
 #include <linux/usb.h>
-#include <asm/byteorder.h>
-#include <net/sock.h>
+#include <linux/wait.h>
 
 #define USBIP_VERSION "1.0.0"
 
@@ -366,4 +370,4 @@ void usbip_stop_eh(struct usbip_device *ud);
 void usbip_event_add(struct usbip_device *ud, unsigned long event);
 int usbip_event_happened(struct usbip_device *ud);
 
-#endif
+#endif /* __USBIP_COMMON_H */
index 8861e3ba005dc8e1744d6475402dbc6510ab2b10..da6074daf1fe550d9925e26bb6393a3955be52f3 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include <linux/kthread.h>
+
 #include "usbip_common.h"
 
 static int event_handler(struct usbip_device *ud)
index d745c4ebd05c7569b3b991976721734a9dc90b9c..d5bc8e7e3d79d12ec0769c3eaa4801ade1fa297d 100644 (file)
  * USA.
  */
 
-#include <linux/platform_device.h>
+#include <linux/device.h>
+#include <linux/list.h>
+#include <linux/spinlock.h>
+#include <linux/sysfs.h>
+#include <linux/types.h>
+#include <linux/usb.h>
 #include <linux/usb/hcd.h>
+#include <linux/wait.h>
 
 struct vhci_device {
        struct usb_device *udev;
index 7372d4d0103be5ffb7cf7a095bf1a8168ec326c9..facd58ece53de02259a3a87f9a5d8529fc78235a 100644 (file)
  * USA.
  */
 
-#include <linux/slab.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
 #include <linux/kthread.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/slab.h>
 
 #include "usbip_common.h"
 #include "vhci.h"
index fedc442d87310ead6d25487c55a271be3fa6072f..2fe6cbf6202f2e513c5f67e46fdeeb97cce57fbd 100644 (file)
@@ -17,8 +17,8 @@
  * USA.
  */
 
-#include <linux/slab.h>
 #include <linux/kthread.h>
+#include <linux/slab.h>
 
 #include "usbip_common.h"
 #include "vhci.h"
index 4acded46fdf275785c09ec0ab59c0fca507d13bc..a684f225844d803376fdc2b08507b454d586dc29 100644 (file)
  * USA.
  */
 
+#include <linux/kthread.h>
+#include <linux/net.h>
+
 #include "usbip_common.h"
 #include "vhci.h"
 
-#include <linux/in.h>
-
 /* TODO: refine locking ?*/
 
 /* Sysfs entry to show port status */
index 62c9acb67fc875ae6e3d1cad12f0ac8a584397da..c1aa03bf246d6f4a717d50cabb365d212abd137e 100644 (file)
@@ -17,8 +17,8 @@
  * USA.
  */
 
-#include <linux/slab.h>
 #include <linux/kthread.h>
+#include <linux/slab.h>
 
 #include "usbip_common.h"
 #include "vhci.h"
This page took 0.030427 seconds and 5 git commands to generate.