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

[SCSI] small cleanups

This patch contains the following cleanups:
- make needlessly global functions static
- every file should #include the headers containing the prototypes for
it's global functions

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by

Adrian Bunk and committed by
James Bottomley
44818efb 9d720d82

+5 -3
+1
drivers/scsi/scsi_sysctl.c
··· 9 9 #include <linux/sysctl.h> 10 10 11 11 #include "scsi_logging.h" 12 + #include "scsi_priv.h" 12 13 13 14 14 15 static ctl_table scsi_table[] = {
+2 -1
drivers/scsi/scsi_sysfs.c
··· 16 16 #include <scsi/scsi_host.h> 17 17 #include <scsi/scsi_tcq.h> 18 18 #include <scsi/scsi_transport.h> 19 + #include <scsi/scsi_driver.h> 19 20 20 21 #include "scsi_priv.h" 21 22 #include "scsi_logging.h" ··· 804 803 } 805 804 EXPORT_SYMBOL(scsi_remove_device); 806 805 807 - void __scsi_remove_target(struct scsi_target *starget) 806 + static void __scsi_remove_target(struct scsi_target *starget) 808 807 { 809 808 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 810 809 unsigned long flags;
+1 -1
drivers/scsi/scsi_transport_fc.c
··· 2358 2358 * Notes: 2359 2359 * This routine assumes no locks are held on entry. 2360 2360 **/ 2361 - struct fc_rport * 2361 + static struct fc_rport * 2362 2362 fc_rport_create(struct Scsi_Host *shost, int channel, 2363 2363 struct fc_rport_identifiers *ids) 2364 2364 {
+1 -1
drivers/scsi/sr.c
··· 175 175 * an inode for that to work, and we do not always have one. 176 176 */ 177 177 178 - int sr_media_change(struct cdrom_device_info *cdi, int slot) 178 + static int sr_media_change(struct cdrom_device_info *cdi, int slot) 179 179 { 180 180 struct scsi_cd *cd = cdi->handle; 181 181 int retval;