diff options
author | Martin Peschke <mp3@de.ibm.com> | 2008-04-18 06:51:55 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-18 12:50:17 -0400 |
commit | 1f6f7129ebac007629b28764bfa5147817682692 (patch) | |
tree | 4e0420ff91ed617a97e48b0db81d334e5ba80935 /drivers/s390/scsi/zfcp_ext.h | |
parent | 99773aab0377ee5bcaf37b7cd2577c3465422dab (diff) |
[SCSI] zfcp: fix 31 bit compile warnings
drivers/s390/scsi/zfcp_aux.c: In function ‘zfcp_fsf_incoming_els_rscn’:
drivers/s390/scsi/zfcp_aux.c:1379: warning: cast from pointer to integer of
different size
drivers/s390/scsi/zfcp_aux.c: In function ‘zfcp_fsf_incoming_els_plogi’:
drivers/s390/scsi/zfcp_aux.c:1432: warning: cast from pointer to integer of
different size
drivers/s390/scsi/zfcp_aux.c: In function ‘zfcp_fsf_incoming_els_logo’:
drivers/s390/scsi/zfcp_aux.c:1457: warning: cast from pointer to integer of
different size
..
Just passing pointers rids us of these warnings and improves readability.
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ext.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_ext.h | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/drivers/s390/scsi/zfcp_ext.h b/drivers/s390/scsi/zfcp_ext.h index 6de0147d84d8..6abf178fda5d 100644 --- a/drivers/s390/scsi/zfcp_ext.h +++ b/drivers/s390/scsi/zfcp_ext.h | |||
@@ -131,23 +131,25 @@ extern int zfcp_scsi_command_sync(struct zfcp_unit *, struct scsi_cmnd *, int); | |||
131 | extern struct fc_function_template zfcp_transport_functions; | 131 | extern struct fc_function_template zfcp_transport_functions; |
132 | 132 | ||
133 | /******************************** ERP ****************************************/ | 133 | /******************************** ERP ****************************************/ |
134 | extern void zfcp_erp_modify_adapter_status(struct zfcp_adapter *, u8, u64, u32, | 134 | extern void zfcp_erp_modify_adapter_status(struct zfcp_adapter *, u8, void *, |
135 | int); | 135 | u32, int); |
136 | extern int zfcp_erp_adapter_reopen(struct zfcp_adapter *, int, u8, u64); | 136 | extern int zfcp_erp_adapter_reopen(struct zfcp_adapter *, int, u8, void *); |
137 | extern int zfcp_erp_adapter_shutdown(struct zfcp_adapter *, int, u8, u64); | 137 | extern int zfcp_erp_adapter_shutdown(struct zfcp_adapter *, int, u8, void *); |
138 | extern void zfcp_erp_adapter_failed(struct zfcp_adapter *, u8, u64); | 138 | extern void zfcp_erp_adapter_failed(struct zfcp_adapter *, u8, void *); |
139 | 139 | ||
140 | extern void zfcp_erp_modify_port_status(struct zfcp_port *, u8, u64, u32, int); | 140 | extern void zfcp_erp_modify_port_status(struct zfcp_port *, u8, void *, u32, |
141 | extern int zfcp_erp_port_reopen(struct zfcp_port *, int, u8, u64); | 141 | int); |
142 | extern int zfcp_erp_port_shutdown(struct zfcp_port *, int, u8, u64); | 142 | extern int zfcp_erp_port_reopen(struct zfcp_port *, int, u8, void *); |
143 | extern int zfcp_erp_port_forced_reopen(struct zfcp_port *, int, u8, u64); | 143 | extern int zfcp_erp_port_shutdown(struct zfcp_port *, int, u8, void *); |
144 | extern void zfcp_erp_port_failed(struct zfcp_port *, u8, u64); | 144 | extern int zfcp_erp_port_forced_reopen(struct zfcp_port *, int, u8, void *); |
145 | extern int zfcp_erp_port_reopen_all(struct zfcp_adapter *, int, u8, u64); | 145 | extern void zfcp_erp_port_failed(struct zfcp_port *, u8, void *); |
146 | 146 | extern int zfcp_erp_port_reopen_all(struct zfcp_adapter *, int, u8, void *); | |
147 | extern void zfcp_erp_modify_unit_status(struct zfcp_unit *, u8, u64, u32, int); | 147 | |
148 | extern int zfcp_erp_unit_reopen(struct zfcp_unit *, int, u8, u64); | 148 | extern void zfcp_erp_modify_unit_status(struct zfcp_unit *, u8, void *, u32, |
149 | extern int zfcp_erp_unit_shutdown(struct zfcp_unit *, int, u8, u64); | 149 | int); |
150 | extern void zfcp_erp_unit_failed(struct zfcp_unit *, u8, u64); | 150 | extern int zfcp_erp_unit_reopen(struct zfcp_unit *, int, u8, void *); |
151 | extern int zfcp_erp_unit_shutdown(struct zfcp_unit *, int, u8, void *); | ||
152 | extern void zfcp_erp_unit_failed(struct zfcp_unit *, u8, void *); | ||
151 | 153 | ||
152 | extern int zfcp_erp_thread_setup(struct zfcp_adapter *); | 154 | extern int zfcp_erp_thread_setup(struct zfcp_adapter *); |
153 | extern int zfcp_erp_thread_kill(struct zfcp_adapter *); | 155 | extern int zfcp_erp_thread_kill(struct zfcp_adapter *); |
@@ -156,22 +158,22 @@ extern void zfcp_erp_async_handler(struct zfcp_erp_action *, unsigned long); | |||
156 | 158 | ||
157 | extern int zfcp_test_link(struct zfcp_port *); | 159 | extern int zfcp_test_link(struct zfcp_port *); |
158 | 160 | ||
159 | extern void zfcp_erp_port_boxed(struct zfcp_port *, u8 id, u64 ref); | 161 | extern void zfcp_erp_port_boxed(struct zfcp_port *, u8 id, void *ref); |
160 | extern void zfcp_erp_unit_boxed(struct zfcp_unit *, u8 id, u64 ref); | 162 | extern void zfcp_erp_unit_boxed(struct zfcp_unit *, u8 id, void *ref); |
161 | extern void zfcp_erp_port_access_denied(struct zfcp_port *, u8 id, u64 ref); | 163 | extern void zfcp_erp_port_access_denied(struct zfcp_port *, u8 id, void *ref); |
162 | extern void zfcp_erp_unit_access_denied(struct zfcp_unit *, u8 id, u64 ref); | 164 | extern void zfcp_erp_unit_access_denied(struct zfcp_unit *, u8 id, void *ref); |
163 | extern void zfcp_erp_adapter_access_changed(struct zfcp_adapter *, u8, u64); | 165 | extern void zfcp_erp_adapter_access_changed(struct zfcp_adapter *, u8, void *); |
164 | extern void zfcp_erp_port_access_changed(struct zfcp_port *, u8, u64); | 166 | extern void zfcp_erp_port_access_changed(struct zfcp_port *, u8, void *); |
165 | extern void zfcp_erp_unit_access_changed(struct zfcp_unit *, u8, u64); | 167 | extern void zfcp_erp_unit_access_changed(struct zfcp_unit *, u8, void *); |
166 | 168 | ||
167 | /******************************** AUX ****************************************/ | 169 | /******************************** AUX ****************************************/ |
168 | extern void zfcp_rec_dbf_event_thread(u8 id, struct zfcp_adapter *adapter, | 170 | extern void zfcp_rec_dbf_event_thread(u8 id, struct zfcp_adapter *adapter, |
169 | int lock); | 171 | int lock); |
170 | extern void zfcp_rec_dbf_event_adapter(u8 id, u64 ref, struct zfcp_adapter *); | 172 | extern void zfcp_rec_dbf_event_adapter(u8 id, void *ref, struct zfcp_adapter *); |
171 | extern void zfcp_rec_dbf_event_port(u8 id, u64 ref, struct zfcp_port *port); | 173 | extern void zfcp_rec_dbf_event_port(u8 id, void *ref, struct zfcp_port *port); |
172 | extern void zfcp_rec_dbf_event_unit(u8 id, u64 ref, struct zfcp_unit *unit); | 174 | extern void zfcp_rec_dbf_event_unit(u8 id, void *ref, struct zfcp_unit *unit); |
173 | extern void zfcp_rec_dbf_event_trigger(u8 id, u64 ref, u8 want, u8 need, | 175 | extern void zfcp_rec_dbf_event_trigger(u8 id, void *ref, u8 want, u8 need, |
174 | u64 action, struct zfcp_adapter *, | 176 | void *action, struct zfcp_adapter *, |
175 | struct zfcp_port *, struct zfcp_unit *); | 177 | struct zfcp_port *, struct zfcp_unit *); |
176 | extern void zfcp_rec_dbf_event_action(u8 id, struct zfcp_erp_action *); | 178 | extern void zfcp_rec_dbf_event_action(u8 id, struct zfcp_erp_action *); |
177 | 179 | ||