staging: usbip: fix header includes

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>
This commit is contained in:
matt mooney 2011-05-11 22:33:43 -07:00 committed by Greg Kroah-Hartman
parent fc184a35d9
commit 7aaacb43ed
13 changed files with 42 additions and 26 deletions

View File

@ -17,13 +17,12 @@
* 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

View File

@ -17,7 +17,7 @@
* USA.
*/
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/kthread.h>
#include "usbip_common.h"

View File

@ -17,7 +17,7 @@
* USA.
*/
#include <linux/slab.h>
#include <linux/string.h>
#include "usbip_common.h"
#include "stub.h"

View File

@ -17,12 +17,13 @@
* 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)
{

View 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"

View File

@ -17,12 +17,12 @@
* 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"

View File

@ -17,14 +17,18 @@
* 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 */

View File

@ -18,6 +18,7 @@
*/
#include <linux/kthread.h>
#include "usbip_common.h"
static int event_handler(struct usbip_device *ud)

View File

@ -17,8 +17,14 @@
* 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;

View File

@ -17,8 +17,12 @@
* 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"

View 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"

View File

@ -17,11 +17,12 @@
* 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 */

View 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"