Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+7 -11
+7 -6
drivers/scsi/atari_scsi.c
··· 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 577 static int called = 0; 578 578 struct Scsi_Host *instance; ··· 724 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 729 if (IS_A_TT()) 730 730 free_irq(IRQ_TT_MFP_SCSI, sh); ··· 788 788 __setup("atascsi=", atari_scsi_setup); 789 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 793 int rv; 794 794 struct NCR5380_hostdata *hostdata = ··· 861 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 866 /* atari_scsi_detect() is verbose enough... */ 867 867 static const char string[] = "Atari native SCSI"; ··· 871 871 872 872 #if defined(REAL_DMA) 873 873 874 - unsigned long atari_scsi_dma_setup(struct Scsi_Host *instance, void *data, 875 - unsigned long count, int dir) 874 + static unsigned long atari_scsi_dma_setup(struct Scsi_Host *instance, 875 + void *data, unsigned long count, 876 + int dir) 876 877 { 877 878 unsigned long addr = virt_to_phys(data); 878 879
-5
drivers/scsi/atari_scsi.h
··· 18 18 /* (I_HAVE_OVERRUNS stuff removed) */ 19 19 20 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 21 /* The values for CMD_PER_LUN and CAN_QUEUE are somehow arbitrary. Higher 27 22 * values should work, too; try it! (but cmd_per_lun costs memory!) */ 28 23