aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_dbf.c
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_dbf.c
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_dbf.c')
-rw-r--r--drivers/s390/scsi/zfcp_dbf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c
index c34a874482a5..37b85c67b11d 100644
--- a/drivers/s390/scsi/zfcp_dbf.c
+++ b/drivers/s390/scsi/zfcp_dbf.c
@@ -700,7 +700,7 @@ void zfcp_rec_dbf_event_thread(u8 id2, struct zfcp_adapter *adapter, int lock)
700 spin_unlock_irqrestore(&adapter->rec_dbf_lock, flags); 700 spin_unlock_irqrestore(&adapter->rec_dbf_lock, flags);
701} 701}
702 702
703static void zfcp_rec_dbf_event_target(u8 id2, u64 ref, 703static void zfcp_rec_dbf_event_target(u8 id2, void *ref,
704 struct zfcp_adapter *adapter, 704 struct zfcp_adapter *adapter,
705 atomic_t *status, atomic_t *erp_count, 705 atomic_t *status, atomic_t *erp_count,
706 u64 wwpn, u32 d_id, u64 fcp_lun) 706 u64 wwpn, u32 d_id, u64 fcp_lun)
@@ -712,7 +712,7 @@ static void zfcp_rec_dbf_event_target(u8 id2, u64 ref,
712 memset(r, 0, sizeof(*r)); 712 memset(r, 0, sizeof(*r));
713 r->id = ZFCP_REC_DBF_ID_TARGET; 713 r->id = ZFCP_REC_DBF_ID_TARGET;
714 r->id2 = id2; 714 r->id2 = id2;
715 r->u.target.ref = ref; 715 r->u.target.ref = (unsigned long)ref;
716 r->u.target.status = atomic_read(status); 716 r->u.target.status = atomic_read(status);
717 r->u.target.wwpn = wwpn; 717 r->u.target.wwpn = wwpn;
718 r->u.target.d_id = d_id; 718 r->u.target.d_id = d_id;
@@ -728,7 +728,7 @@ static void zfcp_rec_dbf_event_target(u8 id2, u64 ref,
728 * @ref: additional reference (e.g. request) 728 * @ref: additional reference (e.g. request)
729 * @adapter: adapter 729 * @adapter: adapter
730 */ 730 */
731void zfcp_rec_dbf_event_adapter(u8 id, u64 ref, struct zfcp_adapter *adapter) 731void zfcp_rec_dbf_event_adapter(u8 id, void *ref, struct zfcp_adapter *adapter)
732{ 732{
733 zfcp_rec_dbf_event_target(id, ref, adapter, &adapter->status, 733 zfcp_rec_dbf_event_target(id, ref, adapter, &adapter->status,
734 &adapter->erp_counter, 0, 0, 0); 734 &adapter->erp_counter, 0, 0, 0);
@@ -740,7 +740,7 @@ void zfcp_rec_dbf_event_adapter(u8 id, u64 ref, struct zfcp_adapter *adapter)
740 * @ref: additional reference (e.g. request) 740 * @ref: additional reference (e.g. request)
741 * @port: port 741 * @port: port
742 */ 742 */
743void zfcp_rec_dbf_event_port(u8 id, u64 ref, struct zfcp_port *port) 743void zfcp_rec_dbf_event_port(u8 id, void *ref, struct zfcp_port *port)
744{ 744{
745 struct zfcp_adapter *adapter = port->adapter; 745 struct zfcp_adapter *adapter = port->adapter;
746 746
@@ -755,7 +755,7 @@ void zfcp_rec_dbf_event_port(u8 id, u64 ref, struct zfcp_port *port)
755 * @ref: additional reference (e.g. request) 755 * @ref: additional reference (e.g. request)
756 * @unit: unit 756 * @unit: unit
757 */ 757 */
758void zfcp_rec_dbf_event_unit(u8 id, u64 ref, struct zfcp_unit *unit) 758void zfcp_rec_dbf_event_unit(u8 id, void *ref, struct zfcp_unit *unit)
759{ 759{
760 struct zfcp_port *port = unit->port; 760 struct zfcp_port *port = unit->port;
761 struct zfcp_adapter *adapter = port->adapter; 761 struct zfcp_adapter *adapter = port->adapter;
@@ -776,8 +776,8 @@ void zfcp_rec_dbf_event_unit(u8 id, u64 ref, struct zfcp_unit *unit)
776 * @port: port 776 * @port: port
777 * @unit: unit 777 * @unit: unit
778 */ 778 */
779void zfcp_rec_dbf_event_trigger(u8 id2, u64 ref, u8 want, u8 need, u64 action, 779void zfcp_rec_dbf_event_trigger(u8 id2, void *ref, u8 want, u8 need,
780 struct zfcp_adapter *adapter, 780 void *action, struct zfcp_adapter *adapter,
781 struct zfcp_port *port, struct zfcp_unit *unit) 781 struct zfcp_port *port, struct zfcp_unit *unit)
782{ 782{
783 struct zfcp_rec_dbf_record *r = &adapter->rec_dbf_buf; 783 struct zfcp_rec_dbf_record *r = &adapter->rec_dbf_buf;
@@ -787,10 +787,10 @@ void zfcp_rec_dbf_event_trigger(u8 id2, u64 ref, u8 want, u8 need, u64 action,
787 memset(r, 0, sizeof(*r)); 787 memset(r, 0, sizeof(*r));
788 r->id = ZFCP_REC_DBF_ID_TRIGGER; 788 r->id = ZFCP_REC_DBF_ID_TRIGGER;
789 r->id2 = id2; 789 r->id2 = id2;
790 r->u.trigger.ref = ref; 790 r->u.trigger.ref = (unsigned long)ref;
791 r->u.trigger.want = want; 791 r->u.trigger.want = want;
792 r->u.trigger.need = need; 792 r->u.trigger.need = need;
793 r->u.trigger.action = action; 793 r->u.trigger.action = (unsigned long)action;
794 r->u.trigger.as = atomic_read(&adapter->status); 794 r->u.trigger.as = atomic_read(&adapter->status);
795 if (port) { 795 if (port) {
796 r->u.trigger.ps = atomic_read(&port->status); 796 r->u.trigger.ps = atomic_read(&port->status);
@@ -819,10 +819,10 @@ void zfcp_rec_dbf_event_action(u8 id2, struct zfcp_erp_action *erp_action)
819 memset(r, 0, sizeof(*r)); 819 memset(r, 0, sizeof(*r));
820 r->id = ZFCP_REC_DBF_ID_ACTION; 820 r->id = ZFCP_REC_DBF_ID_ACTION;
821 r->id2 = id2; 821 r->id2 = id2;
822 r->u.action.action = (u64)erp_action; 822 r->u.action.action = (unsigned long)erp_action;
823 r->u.action.status = erp_action->status; 823 r->u.action.status = erp_action->status;
824 r->u.action.step = erp_action->step; 824 r->u.action.step = erp_action->step;
825 r->u.action.fsf_req = (u64)erp_action->fsf_req; 825 r->u.action.fsf_req = (unsigned long)erp_action->fsf_req;
826 debug_event(adapter->rec_dbf, 4, r, sizeof(*r)); 826 debug_event(adapter->rec_dbf, 4, r, sizeof(*r));
827 spin_unlock_irqrestore(&adapter->rec_dbf_lock, flags); 827 spin_unlock_irqrestore(&adapter->rec_dbf_lock, flags);
828} 828}