diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-06-12 14:48:33 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-04-22 14:16:49 -0400 |
commit | 107b5d5302b184b72a2f12d9d23f2fcd4ce8a6ec (patch) | |
tree | 1cbcb14679709c334a70a94a134fa6b31b431b94 /drivers/scsi | |
parent | 7b54e43a8d1140153e317de5e0dc00d81c709d4d (diff) |
scsi/atari: Make more functions static
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michael Schmitz <schmitzmic@googlemail.com>
Cc: James E.J. Bottomley <JBottomley@parallels.com>
Cc: linux-scsi@vger.kernel.org
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/atari_scsi.c | 13 | ||||
-rw-r--r-- | drivers/scsi/atari_scsi.h | 5 |
2 files changed, 7 insertions, 11 deletions
diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 3102ce524f6..df740cbbaef 100644 --- a/drivers/scsi/atari_scsi.c +++ b/drivers/scsi/atari_scsi.c | |||
@@ -572,7 +572,7 @@ static void falcon_get_lock(void) | |||
572 | } | 572 | } |
573 | 573 | ||
574 | 574 | ||
575 | int __init atari_scsi_detect(struct scsi_host_template *host) | 575 | static int __init atari_scsi_detect(struct scsi_host_template *host) |
576 | { | 576 | { |
577 | static int called = 0; | 577 | static int called = 0; |
578 | struct Scsi_Host *instance; | 578 | struct Scsi_Host *instance; |
@@ -724,7 +724,7 @@ int __init atari_scsi_detect(struct scsi_host_template *host) | |||
724 | return 1; | 724 | return 1; |
725 | } | 725 | } |
726 | 726 | ||
727 | int atari_scsi_release(struct Scsi_Host *sh) | 727 | static int atari_scsi_release(struct Scsi_Host *sh) |
728 | { | 728 | { |
729 | if (IS_A_TT()) | 729 | if (IS_A_TT()) |
730 | free_irq(IRQ_TT_MFP_SCSI, sh); | 730 | free_irq(IRQ_TT_MFP_SCSI, sh); |
@@ -788,7 +788,7 @@ static int __init atari_scsi_setup(char *str) | |||
788 | __setup("atascsi=", atari_scsi_setup); | 788 | __setup("atascsi=", atari_scsi_setup); |
789 | #endif /* !MODULE */ | 789 | #endif /* !MODULE */ |
790 | 790 | ||
791 | int atari_scsi_bus_reset(Scsi_Cmnd *cmd) | 791 | static int atari_scsi_bus_reset(Scsi_Cmnd *cmd) |
792 | { | 792 | { |
793 | int rv; | 793 | int rv; |
794 | struct NCR5380_hostdata *hostdata = | 794 | struct NCR5380_hostdata *hostdata = |
@@ -861,7 +861,7 @@ static void __init atari_scsi_reset_boot(void) | |||
861 | #endif | 861 | #endif |
862 | 862 | ||
863 | 863 | ||
864 | const char *atari_scsi_info(struct Scsi_Host *host) | 864 | static const char *atari_scsi_info(struct Scsi_Host *host) |
865 | { | 865 | { |
866 | /* atari_scsi_detect() is verbose enough... */ | 866 | /* atari_scsi_detect() is verbose enough... */ |
867 | static const char string[] = "Atari native SCSI"; | 867 | static const char string[] = "Atari native SCSI"; |
@@ -871,8 +871,9 @@ const char *atari_scsi_info(struct Scsi_Host *host) | |||
871 | 871 | ||
872 | #if defined(REAL_DMA) | 872 | #if defined(REAL_DMA) |
873 | 873 | ||
874 | unsigned long atari_scsi_dma_setup(struct Scsi_Host *instance, void *data, | 874 | static unsigned long atari_scsi_dma_setup(struct Scsi_Host *instance, |
875 | unsigned long count, int dir) | 875 | void *data, unsigned long count, |
876 | int dir) | ||
876 | { | 877 | { |
877 | unsigned long addr = virt_to_phys(data); | 878 | unsigned long addr = virt_to_phys(data); |
878 | 879 | ||
diff --git a/drivers/scsi/atari_scsi.h b/drivers/scsi/atari_scsi.h index efadb8d567c..bd52df78b20 100644 --- a/drivers/scsi/atari_scsi.h +++ b/drivers/scsi/atari_scsi.h | |||
@@ -18,11 +18,6 @@ | |||
18 | /* (I_HAVE_OVERRUNS stuff removed) */ | 18 | /* (I_HAVE_OVERRUNS stuff removed) */ |
19 | 19 | ||
20 | #ifndef ASM | 20 | #ifndef ASM |
21 | int atari_scsi_detect (struct scsi_host_template *); | ||
22 | const char *atari_scsi_info (struct Scsi_Host *); | ||
23 | int atari_scsi_reset (Scsi_Cmnd *, unsigned int); | ||
24 | int atari_scsi_release (struct Scsi_Host *); | ||
25 | |||
26 | /* The values for CMD_PER_LUN and CAN_QUEUE are somehow arbitrary. Higher | 21 | /* The values for CMD_PER_LUN and CAN_QUEUE are somehow arbitrary. Higher |
27 | * values should work, too; try it! (but cmd_per_lun costs memory!) */ | 22 | * values should work, too; try it! (but cmd_per_lun costs memory!) */ |
28 | 23 | ||