diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2008-05-19 06:17:47 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-06-05 10:27:15 -0400 |
commit | aa0fec62391cd429385e7f3f9fc4a1fb8e2d1218 (patch) | |
tree | 24cec104ec5bcea8fe4d12e1b158f6f0a105a080 /drivers/s390/scsi/zfcp_ext.h | |
parent | 7337891f381f856a63595392d7e79f2580912bf7 (diff) |
[SCSI] zfcp: Fix sparse warning by providing new entry in dbf
drivers/s390/scsi/zfcp_dbf.c:692:2: warning: context imbalance in
'zfcp_rec_dbf_event_thread' - different lock contexts for basic block
Replace the parameter indicating if the lock is held with a new entry
function that only acquires the lock. This makes the lock handling
more visible and removes the sparse warning.
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Peschke <mp3@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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_ext.h b/drivers/s390/scsi/zfcp_ext.h index 16213cbbc4ba..e47ab8d05b67 100644 --- a/drivers/s390/scsi/zfcp_ext.h +++ b/drivers/s390/scsi/zfcp_ext.h | |||
@@ -169,8 +169,8 @@ extern void zfcp_erp_port_access_changed(struct zfcp_port *, u8, void *); | |||
169 | extern void zfcp_erp_unit_access_changed(struct zfcp_unit *, u8, void *); | 169 | extern void zfcp_erp_unit_access_changed(struct zfcp_unit *, u8, void *); |
170 | 170 | ||
171 | /******************************** AUX ****************************************/ | 171 | /******************************** AUX ****************************************/ |
172 | extern void zfcp_rec_dbf_event_thread(u8 id, struct zfcp_adapter *adapter, | 172 | extern void zfcp_rec_dbf_event_thread(u8 id, struct zfcp_adapter *adapter); |
173 | int lock); | 173 | extern void zfcp_rec_dbf_event_thread_lock(u8 id, struct zfcp_adapter *adapter); |
174 | extern void zfcp_rec_dbf_event_adapter(u8 id, void *ref, struct zfcp_adapter *); | 174 | extern void zfcp_rec_dbf_event_adapter(u8 id, void *ref, struct zfcp_adapter *); |
175 | extern void zfcp_rec_dbf_event_port(u8 id, void *ref, struct zfcp_port *port); | 175 | extern void zfcp_rec_dbf_event_port(u8 id, void *ref, struct zfcp_port *port); |
176 | extern void zfcp_rec_dbf_event_unit(u8 id, void *ref, struct zfcp_unit *unit); | 176 | extern void zfcp_rec_dbf_event_unit(u8 id, void *ref, struct zfcp_unit *unit); |