Commit ed8b9e7f authored by Finn Thain's avatar Finn Thain Committed by Christoph Hellwig

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: default avatarFinn Thain <fthain@telegraphics.com.au>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Tested-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 48f16c9b
...@@ -181,12 +181,7 @@ static inline void DISABLE_IRQ(void) ...@@ -181,12 +181,7 @@ static inline void DISABLE_IRQ(void)
/***************************** Prototypes *****************************/ /***************************** Prototypes *****************************/
#ifdef REAL_DMA #ifdef REAL_DMA
static int scsi_dma_is_ignored_buserr(unsigned char dma_stat);
static void atari_scsi_fetch_restbytes(void); static void atari_scsi_fetch_restbytes(void);
static long atari_scsi_dma_residual(struct Scsi_Host *instance);
static int falcon_classify_cmd(Scsi_Cmnd *cmd);
static unsigned long atari_dma_xfer_len(unsigned long wanted_len,
Scsi_Cmnd *cmd, int write_flag);
#endif #endif
static irqreturn_t scsi_tt_intr(int irq, void *dummy); static irqreturn_t scsi_tt_intr(int irq, void *dummy);
static irqreturn_t scsi_falcon_intr(int irq, void *dummy); static irqreturn_t scsi_falcon_intr(int irq, void *dummy);
......
...@@ -32,13 +32,6 @@ ...@@ -32,13 +32,6 @@
#define DTCDEBUG_INIT 0x1 #define DTCDEBUG_INIT 0x1
#define DTCDEBUG_TRANSFER 0x2 #define DTCDEBUG_TRANSFER 0x2
static int dtc_abort(Scsi_Cmnd *);
static int dtc_biosparam(struct scsi_device *, struct block_device *,
sector_t, int*);
static int dtc_detect(struct scsi_host_template *);
static int dtc_queue_command(struct Scsi_Host *, struct scsi_cmnd *);
static int dtc_bus_reset(Scsi_Cmnd *);
#ifndef CMD_PER_LUN #ifndef CMD_PER_LUN
#define CMD_PER_LUN 2 #define CMD_PER_LUN 2
#endif #endif
......
...@@ -272,7 +272,7 @@ static int __init do_DTC3181E_setup(char *str) ...@@ -272,7 +272,7 @@ static int __init do_DTC3181E_setup(char *str)
* Locks: none * Locks: none
*/ */
int __init generic_NCR5380_detect(struct scsi_host_template * tpnt) static int __init generic_NCR5380_detect(struct scsi_host_template *tpnt)
{ {
static int current_override = 0; static int current_override = 0;
int count; int count;
...@@ -484,7 +484,7 @@ int __init generic_NCR5380_detect(struct scsi_host_template * tpnt) ...@@ -484,7 +484,7 @@ int __init generic_NCR5380_detect(struct scsi_host_template * tpnt)
* Report driver information for the NCR5380 * Report driver information for the NCR5380
*/ */
const char *generic_NCR5380_info(struct Scsi_Host *host) static const char *generic_NCR5380_info(struct Scsi_Host *host)
{ {
static const char string[] = "Generic NCR5380/53C400 Driver"; static const char string[] = "Generic NCR5380/53C400 Driver";
return string; return string;
...@@ -499,7 +499,7 @@ const char *generic_NCR5380_info(struct Scsi_Host *host) ...@@ -499,7 +499,7 @@ const char *generic_NCR5380_info(struct Scsi_Host *host)
* Locks: none * Locks: none
*/ */
int generic_NCR5380_release_resources(struct Scsi_Host *instance) static int generic_NCR5380_release_resources(struct Scsi_Host *instance)
{ {
NCR5380_local_declare(); NCR5380_local_declare();
NCR5380_setup(instance); NCR5380_setup(instance);
......
...@@ -39,12 +39,6 @@ ...@@ -39,12 +39,6 @@
#endif #endif
#ifndef ASM #ifndef ASM
static int generic_NCR5380_abort(Scsi_Cmnd *);
static int generic_NCR5380_detect(struct scsi_host_template *);
static int generic_NCR5380_release_resources(struct Scsi_Host *);
static int generic_NCR5380_queue_command(struct Scsi_Host *, struct scsi_cmnd *);
static int generic_NCR5380_bus_reset(Scsi_Cmnd *);
static const char* generic_NCR5380_info(struct Scsi_Host *);
#ifndef CMD_PER_LUN #ifndef CMD_PER_LUN
#define CMD_PER_LUN 2 #define CMD_PER_LUN 2
......
...@@ -56,8 +56,6 @@ ...@@ -56,8 +56,6 @@
#define RESET_BOOT #define RESET_BOOT
extern void via_scsi_clear(void);
#ifdef RESET_BOOT #ifdef RESET_BOOT
static void mac_scsi_reset_boot(struct Scsi_Host *instance); static void mac_scsi_reset_boot(struct Scsi_Host *instance);
#endif #endif
......
...@@ -382,7 +382,7 @@ __setup("pas16=", pas16_setup); ...@@ -382,7 +382,7 @@ __setup("pas16=", pas16_setup);
* *
*/ */
int __init pas16_detect(struct scsi_host_template * tpnt) static int __init pas16_detect(struct scsi_host_template *tpnt)
{ {
static int current_override = 0; static int current_override = 0;
static unsigned short current_base = 0; static unsigned short current_base = 0;
...@@ -512,8 +512,8 @@ int __init pas16_detect(struct scsi_host_template * tpnt) ...@@ -512,8 +512,8 @@ int __init pas16_detect(struct scsi_host_template * tpnt)
* and matching the H_C_S coordinates to what DOS uses. * and matching the H_C_S coordinates to what DOS uses.
*/ */
int pas16_biosparam(struct scsi_device *sdev, struct block_device *dev, static int pas16_biosparam(struct scsi_device *sdev, struct block_device *dev,
sector_t capacity, int * ip) sector_t capacity, int *ip)
{ {
int size = capacity; int size = capacity;
ip[0] = 64; ip[0] = 64;
......
...@@ -114,12 +114,6 @@ ...@@ -114,12 +114,6 @@
#ifndef ASM #ifndef ASM
static int pas16_abort(Scsi_Cmnd *);
static int pas16_biosparam(struct scsi_device *, struct block_device *,
sector_t, int*);
static int pas16_detect(struct scsi_host_template *);
static int pas16_queue_command(struct Scsi_Host *, struct scsi_cmnd *);
static int pas16_bus_reset(Scsi_Cmnd *);
#ifndef CMD_PER_LUN #ifndef CMD_PER_LUN
#define CMD_PER_LUN 2 #define CMD_PER_LUN 2
......
...@@ -86,8 +86,6 @@ extern int sun3_map_test(unsigned long, char *); ...@@ -86,8 +86,6 @@ extern int sun3_map_test(unsigned long, char *);
static irqreturn_t scsi_sun3_intr(int irq, void *dummy); static irqreturn_t scsi_sun3_intr(int irq, void *dummy);
static inline unsigned char sun3scsi_read(int reg);
static inline void sun3scsi_write(int reg, int value);
static int setup_can_queue = -1; static int setup_can_queue = -1;
module_param(setup_can_queue, int, 0); module_param(setup_can_queue, int, 0);
...@@ -348,7 +346,7 @@ static int __init sun3scsi_detect(struct scsi_host_template *tpnt) ...@@ -348,7 +346,7 @@ static int __init sun3scsi_detect(struct scsi_host_template *tpnt)
return 1; return 1;
} }
int sun3scsi_release (struct Scsi_Host *shpnt) static int sun3scsi_release(struct Scsi_Host *shpnt)
{ {
if (shpnt->irq != SCSI_IRQ_NONE) if (shpnt->irq != SCSI_IRQ_NONE)
free_irq(shpnt->irq, shpnt); free_irq(shpnt->irq, shpnt);
......
...@@ -43,13 +43,6 @@ ...@@ -43,13 +43,6 @@
#define IOBASE_SUN3_VMESCSI 0xff200000 #define IOBASE_SUN3_VMESCSI 0xff200000
static int sun3scsi_abort(struct scsi_cmnd *);
static int sun3scsi_detect (struct scsi_host_template *);
static const char *sun3scsi_info (struct Scsi_Host *);
static int sun3scsi_bus_reset(struct scsi_cmnd *);
static int sun3scsi_queue_command(struct Scsi_Host *, struct scsi_cmnd *);
static int sun3scsi_release (struct Scsi_Host *);
#ifndef CMD_PER_LUN #ifndef CMD_PER_LUN
#define CMD_PER_LUN 2 #define CMD_PER_LUN 2
#endif #endif
......
...@@ -193,7 +193,8 @@ __setup("t128=", t128_setup); ...@@ -193,7 +193,8 @@ __setup("t128=", t128_setup);
* *
*/ */
int __init t128_detect(struct scsi_host_template * tpnt){ static int __init t128_detect(struct scsi_host_template *tpnt)
{
static int current_override = 0, current_base = 0; static int current_override = 0, current_base = 0;
struct Scsi_Host *instance; struct Scsi_Host *instance;
unsigned long base; unsigned long base;
...@@ -325,8 +326,8 @@ static int t128_release(struct Scsi_Host *shost) ...@@ -325,8 +326,8 @@ static int t128_release(struct Scsi_Host *shost)
* and matching the H_C_S coordinates to what DOS uses. * and matching the H_C_S coordinates to what DOS uses.
*/ */
int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev, static int t128_biosparam(struct scsi_device *sdev, struct block_device *bdev,
sector_t capacity, int * ip) sector_t capacity, int *ip)
{ {
ip[0] = 64; ip[0] = 64;
ip[1] = 32; ip[1] = 32;
......
...@@ -88,12 +88,6 @@ ...@@ -88,12 +88,6 @@
#define T_DATA_REG_OFFSET 0x1e00 /* rw 512 bytes long */ #define T_DATA_REG_OFFSET 0x1e00 /* rw 512 bytes long */
#ifndef ASM #ifndef ASM
static int t128_abort(struct scsi_cmnd *);
static int t128_biosparam(struct scsi_device *, struct block_device *,
sector_t, int*);
static int t128_detect(struct scsi_host_template *);
static int t128_queue_command(struct Scsi_Host *, struct scsi_cmnd *);
static int t128_bus_reset(struct scsi_cmnd *);
#ifndef CMD_PER_LUN #ifndef CMD_PER_LUN
#define CMD_PER_LUN 2 #define CMD_PER_LUN 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment