diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-06-24 01:05:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:43 -0400 |
commit | 52c1da39534fb382c061de58b65f678ad74b59f5 (patch) | |
tree | 92b18695f23afbc99374f844445f555a198978f2 /drivers/scsi | |
parent | d763b7a4736e219528f77bf6bc75dd78b1d75c03 (diff) |
[PATCH] make various thing static
Another rollup of patches which give various symbols static scope
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/hosts.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi.c | 6 | ||||
-rw-r--r-- | drivers/scsi/scsi_debug.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi_lib.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi_priv.h | 4 | ||||
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 4 |
6 files changed, 9 insertions, 11 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index ba347576d99b..d7a38b6713f9 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
@@ -56,7 +56,7 @@ static struct class shost_class = { | |||
56 | * @shost: pointer to struct Scsi_Host | 56 | * @shost: pointer to struct Scsi_Host |
57 | * recovery: recovery requested to run. | 57 | * recovery: recovery requested to run. |
58 | **/ | 58 | **/ |
59 | void scsi_host_cancel(struct Scsi_Host *shost, int recovery) | 59 | static void scsi_host_cancel(struct Scsi_Host *shost, int recovery) |
60 | { | 60 | { |
61 | struct scsi_device *sdev; | 61 | struct scsi_device *sdev; |
62 | 62 | ||
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 5578ae9a9e45..1cb5f7d4f278 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -68,6 +68,8 @@ | |||
68 | #include "scsi_priv.h" | 68 | #include "scsi_priv.h" |
69 | #include "scsi_logging.h" | 69 | #include "scsi_logging.h" |
70 | 70 | ||
71 | static void scsi_done(struct scsi_cmnd *cmd); | ||
72 | static int scsi_retry_command(struct scsi_cmnd *cmd); | ||
71 | 73 | ||
72 | /* | 74 | /* |
73 | * Definitions and constants. | 75 | * Definitions and constants. |
@@ -741,7 +743,7 @@ static DEFINE_PER_CPU(struct list_head, scsi_done_q); | |||
741 | * | 743 | * |
742 | * This function is interrupt context safe. | 744 | * This function is interrupt context safe. |
743 | */ | 745 | */ |
744 | void scsi_done(struct scsi_cmnd *cmd) | 746 | static void scsi_done(struct scsi_cmnd *cmd) |
745 | { | 747 | { |
746 | /* | 748 | /* |
747 | * We don't have to worry about this one timing out any more. | 749 | * We don't have to worry about this one timing out any more. |
@@ -836,7 +838,7 @@ static void scsi_softirq(struct softirq_action *h) | |||
836 | * level drivers should not become re-entrant as a result of | 838 | * level drivers should not become re-entrant as a result of |
837 | * this. | 839 | * this. |
838 | */ | 840 | */ |
839 | int scsi_retry_command(struct scsi_cmnd *cmd) | 841 | static int scsi_retry_command(struct scsi_cmnd *cmd) |
840 | { | 842 | { |
841 | /* | 843 | /* |
842 | * Restore the SCSI command state. | 844 | * Restore the SCSI command state. |
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index e0208886b45e..322b5a41a36f 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
@@ -1783,7 +1783,7 @@ static void __exit scsi_debug_exit(void) | |||
1783 | device_initcall(scsi_debug_init); | 1783 | device_initcall(scsi_debug_init); |
1784 | module_exit(scsi_debug_exit); | 1784 | module_exit(scsi_debug_exit); |
1785 | 1785 | ||
1786 | void pseudo_0_release(struct device * dev) | 1786 | static void pseudo_0_release(struct device * dev) |
1787 | { | 1787 | { |
1788 | if (SCSI_DEBUG_OPT_NOISE & scsi_debug_opts) | 1788 | if (SCSI_DEBUG_OPT_NOISE & scsi_debug_opts) |
1789 | printk(KERN_INFO "scsi_debug: pseudo_0_release() called\n"); | 1789 | printk(KERN_INFO "scsi_debug: pseudo_0_release() called\n"); |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 9f996499fa9d..621dee8b8cb2 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -44,7 +44,7 @@ struct scsi_host_sg_pool { | |||
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #define SP(x) { x, "sgpool-" #x } | 46 | #define SP(x) { x, "sgpool-" #x } |
47 | struct scsi_host_sg_pool scsi_sg_pools[] = { | 47 | static struct scsi_host_sg_pool scsi_sg_pools[] = { |
48 | SP(8), | 48 | SP(8), |
49 | SP(16), | 49 | SP(16), |
50 | SP(32), | 50 | SP(32), |
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index c01580df4476..96d4f745975c 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h | |||
@@ -61,8 +61,6 @@ extern void scsi_exit_hosts(void); | |||
61 | extern int scsi_dispatch_cmd(struct scsi_cmnd *cmd); | 61 | extern int scsi_dispatch_cmd(struct scsi_cmnd *cmd); |
62 | extern int scsi_setup_command_freelist(struct Scsi_Host *shost); | 62 | extern int scsi_setup_command_freelist(struct Scsi_Host *shost); |
63 | extern void scsi_destroy_command_freelist(struct Scsi_Host *shost); | 63 | extern void scsi_destroy_command_freelist(struct Scsi_Host *shost); |
64 | extern void scsi_done(struct scsi_cmnd *cmd); | ||
65 | extern int scsi_retry_command(struct scsi_cmnd *cmd); | ||
66 | extern int scsi_insert_special_req(struct scsi_request *sreq, int); | 64 | extern int scsi_insert_special_req(struct scsi_request *sreq, int); |
67 | extern void scsi_init_cmd_from_req(struct scsi_cmnd *cmd, | 65 | extern void scsi_init_cmd_from_req(struct scsi_cmnd *cmd, |
68 | struct scsi_request *sreq); | 66 | struct scsi_request *sreq); |
@@ -136,7 +134,6 @@ extern void scsi_exit_sysctl(void); | |||
136 | #endif /* CONFIG_SYSCTL */ | 134 | #endif /* CONFIG_SYSCTL */ |
137 | 135 | ||
138 | /* scsi_sysfs.c */ | 136 | /* scsi_sysfs.c */ |
139 | extern void scsi_device_dev_release(struct device *); | ||
140 | extern int scsi_sysfs_add_sdev(struct scsi_device *); | 137 | extern int scsi_sysfs_add_sdev(struct scsi_device *); |
141 | extern int scsi_sysfs_add_host(struct Scsi_Host *); | 138 | extern int scsi_sysfs_add_host(struct Scsi_Host *); |
142 | extern int scsi_sysfs_register(void); | 139 | extern int scsi_sysfs_register(void); |
@@ -145,7 +142,6 @@ extern void scsi_sysfs_device_initialize(struct scsi_device *); | |||
145 | extern int scsi_sysfs_target_initialize(struct scsi_device *); | 142 | extern int scsi_sysfs_target_initialize(struct scsi_device *); |
146 | extern struct scsi_transport_template blank_transport_template; | 143 | extern struct scsi_transport_template blank_transport_template; |
147 | 144 | ||
148 | extern struct class sdev_class; | ||
149 | extern struct bus_type scsi_bus_type; | 145 | extern struct bus_type scsi_bus_type; |
150 | 146 | ||
151 | /* | 147 | /* |
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 93b41100a6d8..beed7fbe1cbe 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -150,7 +150,7 @@ static void scsi_device_cls_release(struct class_device *class_dev) | |||
150 | put_device(&sdev->sdev_gendev); | 150 | put_device(&sdev->sdev_gendev); |
151 | } | 151 | } |
152 | 152 | ||
153 | void scsi_device_dev_release(struct device *dev) | 153 | static void scsi_device_dev_release(struct device *dev) |
154 | { | 154 | { |
155 | struct scsi_device *sdev; | 155 | struct scsi_device *sdev; |
156 | struct device *parent; | 156 | struct device *parent; |
@@ -185,7 +185,7 @@ void scsi_device_dev_release(struct device *dev) | |||
185 | put_device(parent); | 185 | put_device(parent); |
186 | } | 186 | } |
187 | 187 | ||
188 | struct class sdev_class = { | 188 | static struct class sdev_class = { |
189 | .name = "scsi_device", | 189 | .name = "scsi_device", |
190 | .release = scsi_device_cls_release, | 190 | .release = scsi_device_cls_release, |
191 | }; | 191 | }; |