diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2014-11-12 00:11:51 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-20 03:11:04 -0500 |
commit | ed8b9e7f1827ebae902e868866438d1bcdbef0a2 (patch) | |
tree | 1af713fe0ea8468cfad9c0b502f540271ce0abe7 /drivers/scsi | |
parent | 48f16c9bef8ee6b699ab8e7c5c55920ddd1c7e8f (diff) |
ncr5380: Remove useless prototypes
Add missing static qualifiers and remove the now pointless prototypes. The
NCR5380_* prototypes are all declared in NCR5380.h and renamed using macros.
Further declarations are redundant (some are completely unused). Remove
them.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/atari_scsi.c | 5 | ||||
-rw-r--r-- | drivers/scsi/dtc.h | 7 | ||||
-rw-r--r-- | drivers/scsi/g_NCR5380.c | 6 | ||||
-rw-r--r-- | drivers/scsi/g_NCR5380.h | 6 | ||||
-rw-r--r-- | drivers/scsi/mac_scsi.c | 2 | ||||
-rw-r--r-- | drivers/scsi/pas16.c | 6 | ||||
-rw-r--r-- | drivers/scsi/pas16.h | 6 | ||||
-rw-r--r-- | drivers/scsi/sun3_scsi.c | 4 | ||||
-rw-r--r-- | drivers/scsi/sun3_scsi.h | 7 | ||||
-rw-r--r-- | drivers/scsi/t128.c | 7 | ||||
-rw-r--r-- | drivers/scsi/t128.h | 6 |
11 files changed, 11 insertions, 51 deletions
diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index b522134528d6..151beea19b9a 100644 --- a/drivers/scsi/atari_scsi.c +++ b/drivers/scsi/atari_scsi.c | |||
@@ -181,12 +181,7 @@ static inline void DISABLE_IRQ(void) | |||
181 | /***************************** Prototypes *****************************/ | 181 | /***************************** Prototypes *****************************/ |
182 | 182 | ||
183 | #ifdef REAL_DMA | 183 | #ifdef REAL_DMA |
184 | static int scsi_dma_is_ignored_buserr(unsigned char dma_stat); | ||
185 | static void atari_scsi_fetch_restbytes(void); | 184 | static void atari_scsi_fetch_restbytes(void); |
186 | static long atari_scsi_dma_residual(struct Scsi_Host *instance); | ||
187 | static int falcon_classify_cmd(Scsi_Cmnd *cmd); | ||
188 | static unsigned long atari_dma_xfer_len(unsigned long wanted_len, | ||
189 | Scsi_Cmnd *cmd, int write_flag); | ||
190 | #endif | 185 | #endif |
191 | static irqreturn_t scsi_tt_intr(int irq, void *dummy); | 186 | static irqreturn_t scsi_tt_intr(int irq, void *dummy); |
192 | static irqreturn_t scsi_falcon_intr(int irq, void *dummy); | 187 | static irqreturn_t scsi_falcon_intr(int irq, void *dummy); |
diff --git a/drivers/scsi/dtc.h b/drivers/scsi/dtc.h index 92d7cfc3f4fc..b96252ac641a 100644 --- a/drivers/scsi/dtc.h +++ b/drivers/scsi/dtc.h | |||
@@ -32,13 +32,6 @@ | |||
32 | #define DTCDEBUG_INIT 0x1 | 32 | #define DTCDEBUG_INIT 0x1 |
33 | #define DTCDEBUG_TRANSFER 0x2 | 33 | #define DTCDEBUG_TRANSFER 0x2 |
34 | 34 | ||
35 | static int dtc_abort(Scsi_Cmnd *); | ||
36 | static int dtc_biosparam(struct scsi_device *, struct block_device *, | ||
37 | sector_t, int*); | ||
38 | static int dtc_detect(struct scsi_host_template *); | ||
39 | static int dtc_queue_command(struct Scsi_Host *, struct scsi_cmnd *); | ||
40 | static int dtc_bus_reset(Scsi_Cmnd *); | ||
41 | |||
42 | #ifndef CMD_PER_LUN | 35 | #ifndef CMD_PER_LUN |
43 | #define CMD_PER_LUN 2 | 36 | #define CMD_PER_LUN 2 |
44 | #endif | 37 | #endif |
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index eeb8da5b2d4a..c10466939a52 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c | |||
@@ -272,7 +272,7 @@ static int __init do_DTC3181E_setup(char *str) | |||
272 | * Locks: none | 272 | * Locks: none |
273 | */ | 273 | */ |
274 | 274 | ||
275 | int __init generic_NCR5380_detect(struct scsi_host_template * tpnt) | 275 | static int __init generic_NCR5380_detect(struct scsi_host_template *tpnt) |
276 | { | 276 | { |
277 | static int current_override = 0; | 277 | static int current_override = 0; |
278 | int count; | 278 | int count; |
@@ -484,7 +484,7 @@ int __init generic_NCR5380_detect(struct scsi_host_template * tpnt) | |||
484 | * Report driver information for the NCR5380 | 484 | * Report driver information for the NCR5380 |
485 | */ | 485 | */ |
486 | 486 | ||
487 | const char *generic_NCR5380_info(struct Scsi_Host *host) | 487 | static const char *generic_NCR5380_info(struct Scsi_Host *host) |
488 | { | 488 | { |
489 | static const char string[] = "Generic NCR5380/53C400 Driver"; | 489 | static const char string[] = "Generic NCR5380/53C400 Driver"; |
490 | return string; | 490 | return string; |
@@ -499,7 +499,7 @@ const char *generic_NCR5380_info(struct Scsi_Host *host) | |||
499 | * Locks: none | 499 | * Locks: none |
500 | */ | 500 | */ |
501 | 501 | ||
502 | int generic_NCR5380_release_resources(struct Scsi_Host *instance) | 502 | static int generic_NCR5380_release_resources(struct Scsi_Host *instance) |
503 | { | 503 | { |
504 | NCR5380_local_declare(); | 504 | NCR5380_local_declare(); |
505 | NCR5380_setup(instance); | 505 | NCR5380_setup(instance); |
diff --git a/drivers/scsi/g_NCR5380.h b/drivers/scsi/g_NCR5380.h index fb530027a889..75e7e4983263 100644 --- a/drivers/scsi/g_NCR5380.h +++ b/drivers/scsi/g_NCR5380.h | |||
@@ -39,12 +39,6 @@ | |||
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #ifndef ASM | 41 | #ifndef ASM |
42 | static int generic_NCR5380_abort(Scsi_Cmnd *); | ||
43 | static int generic_NCR5380_detect(struct scsi_host_template *); | ||
44 | static int generic_NCR5380_release_resources(struct Scsi_Host *); | ||
45 | static int generic_NCR5380_queue_command(struct Scsi_Host *, struct scsi_cmnd *); | ||
46 | static int generic_NCR5380_bus_reset(Scsi_Cmnd *); | ||
47 | static const char* generic_NCR5380_info(struct Scsi_Host *); | ||
48 | 42 | ||
49 | #ifndef CMD_PER_LUN | 43 | #ifndef CMD_PER_LUN |
50 | #define CMD_PER_LUN 2 | 44 | #define CMD_PER_LUN 2 |
diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c index 579a3d4177f6..aa372ec38507 100644 --- a/drivers/scsi/mac_scsi.c +++ b/drivers/scsi/mac_scsi.c | |||
@@ -56,8 +56,6 @@ | |||
56 | 56 | ||
57 | #define RESET_BOOT | 57 | #define RESET_BOOT |
58 | 58 | ||
59 | extern void via_scsi_clear(void); | ||
60 | |||
61 | #ifdef RESET_BOOT | 59 | #ifdef RESET_BOOT |
62 | static void mac_scsi_reset_boot(struct Scsi_Host *instance); | 60 | static void mac_scsi_reset_boot(struct Scsi_Host *instance); |
63 | #endif | 61 | #endif |
diff --git a/drivers/scsi/pas16.c b/drivers/scsi/pas16.c index 77c81766dfaa..736540e789ed 100644 --- a/drivers/scsi/pas16.c +++ b/drivers/scsi/pas16.c | |||
@@ -382,7 +382,7 @@ __setup("pas16=", pas16_setup); | |||
382 | * | 382 | * |
383 | */ | 383 | */ |
384 | 384 | ||
385 | int __init pas16_detect(struct scsi_host_template * tpnt) | 385 | static int __init pas16_detect(struct scsi_host_template *tpnt) |
386 | { | 386 | { |
387 | static int current_override = 0; | 387 | static int current_override = 0; |
388 | static unsigned short current_base = 0; | 388 | static unsigned short current_base = 0; |
@@ -512,8 +512,8 @@ int __init pas16_detect(struct scsi_host_template * tpnt) | |||
512 | * and matching the H_C_S coordinates to what DOS uses. | 512 | * and matching the H_C_S coordinates to what DOS uses. |
513 | */ | 513 | */ |
514 | 514 | ||
515 | int pas16_biosparam(struct scsi_device *sdev, struct block_device *dev, | 515 | static int pas16_biosparam(struct scsi_device *sdev, struct block_device *dev, |
516 | sector_t capacity, int * ip) | 516 | sector_t capacity, int *ip) |
517 | { | 517 | { |
518 | int size = capacity; | 518 | int size = capacity; |
519 | ip[0] = 64; | 519 | ip[0] = 64; |
diff --git a/drivers/scsi/pas16.h b/drivers/scsi/pas16.h index aa528f53c533..772c4e0eee43 100644 --- a/drivers/scsi/pas16.h +++ b/drivers/scsi/pas16.h | |||
@@ -114,12 +114,6 @@ | |||
114 | 114 | ||
115 | 115 | ||
116 | #ifndef ASM | 116 | #ifndef ASM |
117 | static int pas16_abort(Scsi_Cmnd *); | ||
118 | static int pas16_biosparam(struct scsi_device *, struct block_device *, | ||
119 | sector_t, int*); | ||
120 | static int pas16_detect(struct scsi_host_template *); | ||
121 | static int pas16_queue_command(struct Scsi_Host *, struct scsi_cmnd *); | ||
122 | static int pas16_bus_reset(Scsi_Cmnd *); | ||
123 | 117 | ||
124 | #ifndef CMD_PER_LUN | 118 | #ifndef CMD_PER_LUN |
125 | #define CMD_PER_LUN 2 | 119 | #define CMD_PER_LUN 2 |
diff --git a/drivers/scsi/sun3_scsi.c b/drivers/scsi/sun3_scsi.c index a6fe27b21dba..30353f6b599c 100644 --- a/drivers/scsi/sun3_scsi.c +++ b/drivers/scsi/sun3_scsi.c | |||
@@ -86,8 +86,6 @@ extern int sun3_map_test(unsigned long, char *); | |||
86 | 86 | ||
87 | 87 | ||
88 | static irqreturn_t scsi_sun3_intr(int irq, void *dummy); | 88 | static irqreturn_t scsi_sun3_intr(int irq, void *dummy); |
89 | static inline unsigned char sun3scsi_read(int reg); | ||
90 | static inline void sun3scsi_write(int reg, int value); | ||
91 | 89 | ||
92 | static int setup_can_queue = -1; | 90 | static int setup_can_queue = -1; |
93 | module_param(setup_can_queue, int, 0); | 91 | module_param(setup_can_queue, int, 0); |
@@ -348,7 +346,7 @@ static int __init sun3scsi_detect(struct scsi_host_template *tpnt) | |||
348 | return 1; | 346 | return 1; |
349 | } | 347 | } |
350 | 348 | ||
351 | int sun3scsi_release (struct Scsi_Host *shpnt) | 349 | static int sun3scsi_release(struct Scsi_Host *shpnt) |
352 | { | 350 | { |
353 | if (shpnt->irq != SCSI_IRQ_NONE) | 351 | if (shpnt->irq != SCSI_IRQ_NONE) |
354 | free_irq(shpnt->irq, shpnt); | 352 | free_irq(shpnt->irq, shpnt); |
diff --git a/drivers/scsi/sun3_scsi.h b/drivers/scsi/sun3_scsi.h index 4846c324ea76..b3163a5f11c7 100644 --- a/drivers/scsi/sun3_scsi.h +++ b/drivers/scsi/sun3_scsi.h | |||
@@ -43,13 +43,6 @@ | |||
43 | 43 | ||
44 | #define IOBASE_SUN3_VMESCSI 0xff200000 | 44 | #define IOBASE_SUN3_VMESCSI 0xff200000 |
45 | 45 | ||
46 | static int sun3scsi_abort(struct scsi_cmnd *); | ||
47 | static int sun3scsi_detect (struct scsi_host_template *); | ||
48 | static const char *sun3scsi_info (struct Scsi_Host *); | ||
49 | static int sun3scsi_bus_reset(struct scsi_cmnd *); | ||
50 | static int sun3scsi_queue_command(struct Scsi_Host *, struct scsi_cmnd *); | ||
51 | static int sun3scsi_release (struct Scsi_Host *); | ||
52 | |||
53 | #ifndef CMD_PER_LUN | 46 | #ifndef CMD_PER_LUN |
54 | #define CMD_PER_LUN 2 | 47 | #define CMD_PER_LUN 2 |
55 | #endif | 48 | #endif |
diff --git a/drivers/scsi/t128.c b/drivers/scsi/t128.c index e5acd9eb3148..ccfdc427c4c7 100644 --- a/drivers/scsi/t128.c +++ b/drivers/scsi/t128.c | |||
@@ -193,7 +193,8 @@ __setup("t128=", t128_setup); | |||
193 | * | 193 | * |
194 | */ | 194 | */ |
195 | 195 | ||
196 | int __init t128_detect(struct scsi_host_template * tpnt){ | 196 | static int __init t128_detect(struct scsi_host_template *tpnt) |
197 | { | ||
197 | static int current_override = 0, current_base = 0; | 198 | static int current_override = 0, current_base = 0; |
198 | struct Scsi_Host *instance; | 199 | struct Scsi_Host *instance; |
199 | unsigned long base; | 200 | unsigned long base; |
@@ -325,8 +326,8 @@ static int t128_release(struct Scsi_Host *shost) | |||
325 | * and matching the H_C_S coordinates to what DOS uses. | 326 | * and matching the H_C_S coordinates to what DOS uses. |
326 | */ | 327 | */ |
327 | 328 | ||
328 | int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, | 329 | static int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, |
329 | sector_t capacity, int * ip) | 330 | sector_t capacity, int *ip) |
330 | { | 331 | { |
331 | ip[0] = 64; | 332 | ip[0] = 64; |
332 | ip[1] = 32; | 333 | ip[1] = 32; |
diff --git a/drivers/scsi/t128.h b/drivers/scsi/t128.h index fd68cecc62af..82959ed89a18 100644 --- a/drivers/scsi/t128.h +++ b/drivers/scsi/t128.h | |||
@@ -88,12 +88,6 @@ | |||
88 | #define T_DATA_REG_OFFSET 0x1e00 /* rw 512 bytes long */ | 88 | #define T_DATA_REG_OFFSET 0x1e00 /* rw 512 bytes long */ |
89 | 89 | ||
90 | #ifndef ASM | 90 | #ifndef ASM |
91 | static int t128_abort(struct scsi_cmnd *); | ||
92 | static int t128_biosparam(struct scsi_device *, struct block_device *, | ||
93 | sector_t, int*); | ||
94 | static int t128_detect(struct scsi_host_template *); | ||
95 | static int t128_queue_command(struct Scsi_Host *, struct scsi_cmnd *); | ||
96 | static int t128_bus_reset(struct scsi_cmnd *); | ||
97 | 91 | ||
98 | #ifndef CMD_PER_LUN | 92 | #ifndef CMD_PER_LUN |
99 | #define CMD_PER_LUN 2 | 93 | #define CMD_PER_LUN 2 |