From: Finn Thain Date: Sun, 3 Jan 2016 05:05:46 +0000 (+1100) Subject: ncr5380: Cleanup #include directives X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=161c0059a2a80aefe7000d9ab7ce5c36e5463b5f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ncr5380: Cleanup #include directives Remove unused includes (stat.h, signal.h, proc_fs.h) and move includes needed by the core drivers into the common header (delay.h etc). Signed-off-by: Finn Thain Reviewed-by: Hannes Reinecke Tested-by: Ondrej Zary Tested-by: Michael Schmitz Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index c6b69ee0021a..9ef26b64255a 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c @@ -79,8 +79,6 @@ * 4. Test SCSI-II tagged queueing (I have no devices which support * tagged queueing) */ -#include -#include #if (NDEBUG & NDEBUG_LISTS) #define LIST(x,y) {printk("LINE:%d Adding %p to %p\n", __LINE__, (void*)(x), (void*)(y)); if ((x)==(y)) udelay(5); } diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index e8a26eab32dd..9777602daa3d 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h @@ -22,8 +22,12 @@ #ifndef NCR5380_H #define NCR5380_H +#include #include +#include +#include #include +#include #define NDEBUG_ARBITRATION 0x1 #define NDEBUG_AUTOSENSE 0x2 diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c index f9fb8dabdbbd..921c982886ae 100644 --- a/drivers/scsi/arm/cumana_1.c +++ b/drivers/scsi/arm/cumana_1.c @@ -4,9 +4,7 @@ * Copyright 1995-2002, Russell King */ #include -#include #include -#include #include #include @@ -15,8 +13,6 @@ #include -#include - #define PSEUDO_DMA #define priv(host) ((struct NCR5380_hostdata *)(host)->hostdata) diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index d95a1d4f4e02..719600a373d6 100644 --- a/drivers/scsi/arm/oak.c +++ b/drivers/scsi/arm/oak.c @@ -5,9 +5,7 @@ */ #include -#include #include -#include #include #include diff --git a/drivers/scsi/atari_NCR5380.c b/drivers/scsi/atari_NCR5380.c index c14cfb1cc3dd..8024f1cb9756 100644 --- a/drivers/scsi/atari_NCR5380.c +++ b/drivers/scsi/atari_NCR5380.c @@ -68,9 +68,6 @@ /* Adapted for the sun3 by Sam Creasey. */ -#include -#include - #if (NDEBUG & NDEBUG_LISTS) #define LIST(x, y) \ do { \ @@ -517,8 +514,6 @@ static inline int NCR5380_poll_politely(struct Scsi_Host *instance, reg, bit, val, wait); } -#include - #if NDEBUG static struct { unsigned char mask; diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 1c6c4ca0a82f..2ba075749326 100644 --- a/drivers/scsi/atari_scsi.c +++ b/drivers/scsi/atari_scsi.c @@ -66,7 +66,6 @@ #include #include -#include #include #include #include diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c index db415359fee8..05402830defe 100644 --- a/drivers/scsi/dmx3191d.c +++ b/drivers/scsi/dmx3191d.c @@ -41,11 +41,6 @@ #define NCR5380_implementation_fields /* none */ -/* - * Includes needed for NCR5380.[ch] (XXX: Move them to NCR5380.h) - */ -#include - #include "NCR5380.h" #include "NCR5380.c" diff --git a/drivers/scsi/dtc.c b/drivers/scsi/dtc.c index 1beefdbcbea8..6c96dad5cf23 100644 --- a/drivers/scsi/dtc.c +++ b/drivers/scsi/dtc.c @@ -46,15 +46,13 @@ #include -#include #include -#include -#include #include #include #include #include #include + #include "dtc.h" #define AUTOPROBE_IRQ #include "NCR5380.h" diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index e71c79683925..1e8f29f500d5 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c @@ -63,16 +63,14 @@ #endif #include -#include #include +#include #include #include "g_NCR5380.h" #include "NCR5380.h" -#include #include #include #include -#include #include static int ncr_irq; @@ -732,7 +730,7 @@ static struct scsi_host_template driver_template = { .cmd_per_lun = CMD_PER_LUN, .use_clustering = DISABLE_CLUSTERING, }; -#include + #include "scsi_module.c" module_param(ncr_irq, int, 0); diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c index f8ed2acd1456..420c2e204c13 100644 --- a/drivers/scsi/mac_scsi.c +++ b/drivers/scsi/mac_scsi.c @@ -12,7 +12,6 @@ */ #include -#include #include #include #include diff --git a/drivers/scsi/pas16.c b/drivers/scsi/pas16.c index 4570536187d8..6a5896dade20 100644 --- a/drivers/scsi/pas16.c +++ b/drivers/scsi/pas16.c @@ -69,14 +69,10 @@ #include -#include -#include #include #include #include -#include #include -#include #include #include diff --git a/drivers/scsi/t128.c b/drivers/scsi/t128.c index 3dac6d7f5d22..167c0750eba6 100644 --- a/drivers/scsi/t128.c +++ b/drivers/scsi/t128.c @@ -68,14 +68,11 @@ * 15 9-11 */ -#include #include #include #include -#include #include #include -#include #include #include "t128.h"