aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_ext.h
diff options
context:
space:
mode:
authorMartin Peschke <mp3@de.ibm.com>2008-04-18 06:51:55 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-18 12:50:17 -0400
commit1f6f7129ebac007629b28764bfa5147817682692 (patch)
tree4e0420ff91ed617a97e48b0db81d334e5ba80935 /drivers/s390/scsi/zfcp_ext.h
parent99773aab0377ee5bcaf37b7cd2577c3465422dab (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.h60
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);
131extern struct fc_function_template zfcp_transport_functions; 131extern struct fc_function_template zfcp_transport_functions;
132 132
133/******************************** ERP ****************************************/ 133/******************************** ERP ****************************************/
134extern void zfcp_erp_modify_adapter_status(struct zfcp_adapter *, u8, u64, u32, 134extern void zfcp_erp_modify_adapter_status(struct zfcp_adapter *, u8, void *,
135 int); 135 u32, int);
136extern int zfcp_erp_adapter_reopen(struct zfcp_adapter *, int, u8, u64); 136extern int zfcp_erp_adapter_reopen(struct zfcp_adapter *, int, u8, void *);
137extern int zfcp_erp_adapter_shutdown(struct zfcp_adapter *, int, u8, u64); 137extern int zfcp_erp_adapter_shutdown(struct zfcp_adapter *, int, u8, void *);
138extern void zfcp_erp_adapter_failed(struct zfcp_adapter *, u8, u64); 138extern void zfcp_erp_adapter_failed(struct zfcp_adapter *, u8, void *);
139 139
140extern void zfcp_erp_modify_port_status(struct zfcp_port *, u8, u64, u32, int); 140extern void zfcp_erp_modify_port_status(struct zfcp_port *, u8, void *, u32,
141extern int zfcp_erp_port_reopen(struct zfcp_port *, int, u8, u64); 141 int);
142extern int zfcp_erp_port_shutdown(struct zfcp_port *, int, u8, u64); 142extern int zfcp_erp_port_reopen(struct zfcp_port *, int, u8, void *);
143extern int zfcp_erp_port_forced_reopen(struct zfcp_port *, int, u8, u64); 143extern int zfcp_erp_port_shutdown(struct zfcp_port *, int, u8, void *);
144extern void zfcp_erp_port_failed(struct zfcp_port *, u8, u64); 144extern int zfcp_erp_port_forced_reopen(struct zfcp_port *, int, u8, void *);
145extern int zfcp_erp_port_reopen_all(struct zfcp_adapter *, int, u8, u64); 145extern void zfcp_erp_port_failed(struct zfcp_port *, u8, void *);
146 146extern int zfcp_erp_port_reopen_all(struct zfcp_adapter *, int, u8, void *);
147extern void zfcp_erp_modify_unit_status(struct zfcp_unit *, u8, u64, u32, int); 147
148extern int zfcp_erp_unit_reopen(struct zfcp_unit *, int, u8, u64); 148extern void zfcp_erp_modify_unit_status(struct zfcp_unit *, u8, void *, u32,
149extern int zfcp_erp_unit_shutdown(struct zfcp_unit *, int, u8, u64); 149 int);
150extern void zfcp_erp_unit_failed(struct zfcp_unit *, u8, u64); 150extern int zfcp_erp_unit_reopen(struct zfcp_unit *, int, u8, void *);
151extern int zfcp_erp_unit_shutdown(struct zfcp_unit *, int, u8, void *);
152extern void zfcp_erp_unit_failed(struct zfcp_unit *, u8, void *);
151 153
152extern int zfcp_erp_thread_setup(struct zfcp_adapter *); 154extern int zfcp_erp_thread_setup(struct zfcp_adapter *);
153extern int zfcp_erp_thread_kill(struct zfcp_adapter *); 155extern 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
157extern int zfcp_test_link(struct zfcp_port *); 159extern int zfcp_test_link(struct zfcp_port *);
158 160
159extern void zfcp_erp_port_boxed(struct zfcp_port *, u8 id, u64 ref); 161extern void zfcp_erp_port_boxed(struct zfcp_port *, u8 id, void *ref);
160extern void zfcp_erp_unit_boxed(struct zfcp_unit *, u8 id, u64 ref); 162extern void zfcp_erp_unit_boxed(struct zfcp_unit *, u8 id, void *ref);
161extern void zfcp_erp_port_access_denied(struct zfcp_port *, u8 id, u64 ref); 163extern void zfcp_erp_port_access_denied(struct zfcp_port *, u8 id, void *ref);
162extern void zfcp_erp_unit_access_denied(struct zfcp_unit *, u8 id, u64 ref); 164extern void zfcp_erp_unit_access_denied(struct zfcp_unit *, u8 id, void *ref);
163extern void zfcp_erp_adapter_access_changed(struct zfcp_adapter *, u8, u64); 165extern void zfcp_erp_adapter_access_changed(struct zfcp_adapter *, u8, void *);
164extern void zfcp_erp_port_access_changed(struct zfcp_port *, u8, u64); 166extern void zfcp_erp_port_access_changed(struct zfcp_port *, u8, void *);
165extern void zfcp_erp_unit_access_changed(struct zfcp_unit *, u8, u64); 167extern void zfcp_erp_unit_access_changed(struct zfcp_unit *, u8, void *);
166 168
167/******************************** AUX ****************************************/ 169/******************************** AUX ****************************************/
168extern void zfcp_rec_dbf_event_thread(u8 id, struct zfcp_adapter *adapter, 170extern void zfcp_rec_dbf_event_thread(u8 id, struct zfcp_adapter *adapter,
169 int lock); 171 int lock);
170extern void zfcp_rec_dbf_event_adapter(u8 id, u64 ref, struct zfcp_adapter *); 172extern void zfcp_rec_dbf_event_adapter(u8 id, void *ref, struct zfcp_adapter *);
171extern void zfcp_rec_dbf_event_port(u8 id, u64 ref, struct zfcp_port *port); 173extern void zfcp_rec_dbf_event_port(u8 id, void *ref, struct zfcp_port *port);
172extern void zfcp_rec_dbf_event_unit(u8 id, u64 ref, struct zfcp_unit *unit); 174extern void zfcp_rec_dbf_event_unit(u8 id, void *ref, struct zfcp_unit *unit);
173extern void zfcp_rec_dbf_event_trigger(u8 id, u64 ref, u8 want, u8 need, 175extern 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 *);
176extern void zfcp_rec_dbf_event_action(u8 id, struct zfcp_erp_action *); 178extern void zfcp_rec_dbf_event_action(u8 id, struct zfcp_erp_action *);
177 179