[SCSI] make struct scsi_{host,target}_type static
authorAdrian Bunk <bunk@kernel.org>
Fri, 4 Jul 2008 06:47:33 +0000 (23:47 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:36 +0000 (08:22 -0500)
Make the needlessly global struct scsi_{host,target}_type static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/hosts.c
drivers/scsi/scsi_scan.c

index 3690360d7a798ec98f73e58bb83880fe01e99de3..497ca68d1ffcadd7f42ad58aac04d5ed886f31eb 100644 (file)
@@ -290,7 +290,7 @@ static void scsi_host_dev_release(struct device *dev)
        kfree(shost);
 }
 
-struct device_type scsi_host_type = {
+static struct device_type scsi_host_type = {
        .name =         "scsi_host",
        .release =      scsi_host_dev_release,
 };
index a00eee6f7be9fc85d85f3eb4f33516aa22d8689b..196fe3af0d5efaab057619c723d54d2b3d76429c 100644 (file)
@@ -346,7 +346,7 @@ static void scsi_target_dev_release(struct device *dev)
        put_device(parent);
 }
 
-struct device_type scsi_target_type = {
+static struct device_type scsi_target_type = {
        .name =         "scsi_target",
        .release =      scsi_target_dev_release,
 };