Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756882Ab1EKQGb (ORCPT ); Wed, 11 May 2011 12:06:31 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:52101 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755929Ab1EKQG2 (ORCPT ); Wed, 11 May 2011 12:06:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=pp1elG4vS7B1UkALxWDyKJ7QO7jMqu5tmscvE32FxB+UmN3uaOuCb1lHeCQVVQlqvt g8GRjTZwe4/96xNk1Qj1iyfBD2gkb0637ax0jmncFeEBpXEQ9vn64UmTc/Prwp/VmEJJ VYaFoxmpzy6Qgefm0kaELyVnfCwxM4KCRiJnI= From: matt mooney To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 03/12] staging: usbip: fix header includes Date: Wed, 11 May 2011 01:54:15 -0700 Message-Id: <56b004a084644ec7e9f632d6633aa34177a59818.1305103212.git.mfm@muteddisk.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7063 Lines: 262 Modify header directives to include what is needed by each file and not already included in its own header. Signed-off-by: matt mooney --- drivers/staging/usbip/stub.h | 9 ++++----- drivers/staging/usbip/stub_dev.c | 2 +- drivers/staging/usbip/stub_main.c | 2 +- drivers/staging/usbip/stub_rx.c | 5 +++-- drivers/staging/usbip/stub_tx.c | 2 +- drivers/staging/usbip/usbip_common.c | 8 ++++---- drivers/staging/usbip/usbip_common.h | 16 ++++++++++------ drivers/staging/usbip/usbip_event.c | 1 + drivers/staging/usbip/vhci.h | 8 +++++++- drivers/staging/usbip/vhci_hcd.c | 6 +++++- drivers/staging/usbip/vhci_rx.c | 2 +- drivers/staging/usbip/vhci_sysfs.c | 5 ++--- drivers/staging/usbip/vhci_tx.c | 2 +- 13 files changed, 41 insertions(+), 27 deletions(-) diff --git a/drivers/staging/usbip/stub.h b/drivers/staging/usbip/stub.h index bfea5dc..3d60394 100644 --- a/drivers/staging/usbip/stub.h +++ b/drivers/staging/usbip/stub.h @@ -17,13 +17,12 @@ * USA. */ -#include #include -#include #include -#include -#include -#include +#include +#include +#include +#include #define STUB_BUSID_OTHER 0 #define STUB_BUSID_REMOV 1 diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c index 919d558..c71d0a3 100644 --- a/drivers/staging/usbip/stub_dev.c +++ b/drivers/staging/usbip/stub_dev.c @@ -17,7 +17,7 @@ * USA. */ -#include +#include #include #include "usbip_common.h" diff --git a/drivers/staging/usbip/stub_main.c b/drivers/staging/usbip/stub_main.c index a3c73b2..1f8fc5e 100644 --- a/drivers/staging/usbip/stub_main.c +++ b/drivers/staging/usbip/stub_main.c @@ -17,7 +17,7 @@ * USA. */ -#include +#include #include "usbip_common.h" #include "stub.h" diff --git a/drivers/staging/usbip/stub_rx.c b/drivers/staging/usbip/stub_rx.c index e11ac2a..e245609 100644 --- a/drivers/staging/usbip/stub_rx.c +++ b/drivers/staging/usbip/stub_rx.c @@ -17,12 +17,13 @@ * USA. */ -#include +#include #include +#include +#include #include "usbip_common.h" #include "stub.h" -#include static int is_clear_halt_cmd(struct urb *urb) { diff --git a/drivers/staging/usbip/stub_tx.c b/drivers/staging/usbip/stub_tx.c index fc02261..3c332c2 100644 --- a/drivers/staging/usbip/stub_tx.c +++ b/drivers/staging/usbip/stub_tx.c @@ -17,8 +17,8 @@ * USA. */ -#include #include +#include #include "usbip_common.h" #include "stub.h" diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c index 6c44fa4..fb95edf 100644 --- a/drivers/staging/usbip/usbip_common.c +++ b/drivers/staging/usbip/usbip_common.c @@ -17,12 +17,12 @@ * USA. */ -#include +#include #include -#include -#include -#include +#include +#include #include +#include #include "usbip_common.h" diff --git a/drivers/staging/usbip/usbip_common.h b/drivers/staging/usbip/usbip_common.h index aa5d576..fd84ab2 100644 --- a/drivers/staging/usbip/usbip_common.h +++ b/drivers/staging/usbip/usbip_common.h @@ -17,14 +17,18 @@ * USA. */ -#ifndef __VHCI_COMMON_H -#define __VHCI_COMMON_H +#ifndef __USBIP_COMMON_H +#define __USBIP_COMMON_H -#include #include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include #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 */ diff --git a/drivers/staging/usbip/usbip_event.c b/drivers/staging/usbip/usbip_event.c index 8861e3b..da6074d 100644 --- a/drivers/staging/usbip/usbip_event.c +++ b/drivers/staging/usbip/usbip_event.c @@ -18,6 +18,7 @@ */ #include + #include "usbip_common.h" static int event_handler(struct usbip_device *ud) diff --git a/drivers/staging/usbip/vhci.h b/drivers/staging/usbip/vhci.h index f4834df..691cf74 100644 --- a/drivers/staging/usbip/vhci.h +++ b/drivers/staging/usbip/vhci.h @@ -17,8 +17,14 @@ * USA. */ -#include +#include +#include +#include +#include +#include +#include #include +#include struct vhci_device { struct usb_device *udev; diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index bfb0b5f..b47d6b1 100644 --- a/drivers/staging/usbip/vhci_hcd.c +++ b/drivers/staging/usbip/vhci_hcd.c @@ -17,8 +17,12 @@ * USA. */ -#include +#include +#include #include +#include +#include +#include #include "usbip_common.h" #include "vhci.h" diff --git a/drivers/staging/usbip/vhci_rx.c b/drivers/staging/usbip/vhci_rx.c index fedc442..2fe6cbf 100644 --- a/drivers/staging/usbip/vhci_rx.c +++ b/drivers/staging/usbip/vhci_rx.c @@ -17,8 +17,8 @@ * USA. */ -#include #include +#include #include "usbip_common.h" #include "vhci.h" diff --git a/drivers/staging/usbip/vhci_sysfs.c b/drivers/staging/usbip/vhci_sysfs.c index be851d8..03083f8 100644 --- a/drivers/staging/usbip/vhci_sysfs.c +++ b/drivers/staging/usbip/vhci_sysfs.c @@ -17,12 +17,11 @@ * USA. */ +#include + #include "usbip_common.h" #include "vhci.h" -#include -#include - /* TODO: refine locking ?*/ /* Sysfs entry to show port status */ diff --git a/drivers/staging/usbip/vhci_tx.c b/drivers/staging/usbip/vhci_tx.c index 62c9acb..c1aa03b 100644 --- a/drivers/staging/usbip/vhci_tx.c +++ b/drivers/staging/usbip/vhci_tx.c @@ -17,8 +17,8 @@ * USA. */ -#include #include +#include #include "usbip_common.h" #include "vhci.h" -- 1.7.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/