diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index b9ee56567940..23ee05913fc5 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -110,7 +110,7 @@ static int qla2x00_device_reset(scsi_qla_host_t *, fc_port_t *); | |||
110 | static int qla2x00_change_queue_depth(struct scsi_device *, int); | 110 | static int qla2x00_change_queue_depth(struct scsi_device *, int); |
111 | static int qla2x00_change_queue_type(struct scsi_device *, int); | 111 | static int qla2x00_change_queue_type(struct scsi_device *, int); |
112 | 112 | ||
113 | struct scsi_host_template qla2x00_driver_template = { | 113 | static struct scsi_host_template qla2x00_driver_template = { |
114 | .module = THIS_MODULE, | 114 | .module = THIS_MODULE, |
115 | .name = QLA2XXX_DRIVER_NAME, | 115 | .name = QLA2XXX_DRIVER_NAME, |
116 | .queuecommand = qla2x00_queuecommand, | 116 | .queuecommand = qla2x00_queuecommand, |
@@ -178,13 +178,6 @@ struct scsi_transport_template *qla2xxx_transport_vport_template = NULL; | |||
178 | * Timer routines | 178 | * Timer routines |
179 | */ | 179 | */ |
180 | 180 | ||
181 | void qla2x00_timer(scsi_qla_host_t *); | ||
182 | |||
183 | __inline__ void qla2x00_start_timer(scsi_qla_host_t *, | ||
184 | void *, unsigned long); | ||
185 | static __inline__ void qla2x00_restart_timer(scsi_qla_host_t *, unsigned long); | ||
186 | __inline__ void qla2x00_stop_timer(scsi_qla_host_t *); | ||
187 | |||
188 | __inline__ void | 181 | __inline__ void |
189 | qla2x00_start_timer(scsi_qla_host_t *ha, void *func, unsigned long interval) | 182 | qla2x00_start_timer(scsi_qla_host_t *ha, void *func, unsigned long interval) |
190 | { | 183 | { |
@@ -202,7 +195,7 @@ qla2x00_restart_timer(scsi_qla_host_t *ha, unsigned long interval) | |||
202 | mod_timer(&ha->timer, jiffies + interval * HZ); | 195 | mod_timer(&ha->timer, jiffies + interval * HZ); |
203 | } | 196 | } |
204 | 197 | ||
205 | __inline__ void | 198 | static __inline__ void |
206 | qla2x00_stop_timer(scsi_qla_host_t *ha) | 199 | qla2x00_stop_timer(scsi_qla_host_t *ha) |
207 | { | 200 | { |
208 | del_timer_sync(&ha->timer); | 201 | del_timer_sync(&ha->timer); |
@@ -213,12 +206,11 @@ static int qla2x00_do_dpc(void *data); | |||
213 | 206 | ||
214 | static void qla2x00_rst_aen(scsi_qla_host_t *); | 207 | static void qla2x00_rst_aen(scsi_qla_host_t *); |
215 | 208 | ||
216 | uint8_t qla2x00_mem_alloc(scsi_qla_host_t *); | 209 | static uint8_t qla2x00_mem_alloc(scsi_qla_host_t *); |
217 | void qla2x00_mem_free(scsi_qla_host_t *ha); | 210 | static void qla2x00_mem_free(scsi_qla_host_t *ha); |
218 | static int qla2x00_allocate_sp_pool( scsi_qla_host_t *ha); | 211 | static int qla2x00_allocate_sp_pool( scsi_qla_host_t *ha); |
219 | static void qla2x00_free_sp_pool(scsi_qla_host_t *ha); | 212 | static void qla2x00_free_sp_pool(scsi_qla_host_t *ha); |
220 | static void qla2x00_sp_free_dma(scsi_qla_host_t *, srb_t *); | 213 | static void qla2x00_sp_free_dma(scsi_qla_host_t *, srb_t *); |
221 | void qla2x00_sp_compl(scsi_qla_host_t *ha, srb_t *); | ||
222 | 214 | ||
223 | /* -------------------------------------------------------------------------- */ | 215 | /* -------------------------------------------------------------------------- */ |
224 | 216 | ||
@@ -2008,7 +2000,7 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *ha, int defer) | |||
2008 | * 0 = success. | 2000 | * 0 = success. |
2009 | * 1 = failure. | 2001 | * 1 = failure. |
2010 | */ | 2002 | */ |
2011 | uint8_t | 2003 | static uint8_t |
2012 | qla2x00_mem_alloc(scsi_qla_host_t *ha) | 2004 | qla2x00_mem_alloc(scsi_qla_host_t *ha) |
2013 | { | 2005 | { |
2014 | char name[16]; | 2006 | char name[16]; |
@@ -2205,7 +2197,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha) | |||
2205 | * Input: | 2197 | * Input: |
2206 | * ha = adapter block pointer. | 2198 | * ha = adapter block pointer. |
2207 | */ | 2199 | */ |
2208 | void | 2200 | static void |
2209 | qla2x00_mem_free(scsi_qla_host_t *ha) | 2201 | qla2x00_mem_free(scsi_qla_host_t *ha) |
2210 | { | 2202 | { |
2211 | struct list_head *fcpl, *fcptemp; | 2203 | struct list_head *fcpl, *fcptemp; |