diff options
author | Quinn Tran <quinn.tran@qlogic.com> | 2014-06-02 07:02:16 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-06-02 12:40:48 -0400 |
commit | c7ee3bd4870ef1d96a1202f92ce858f849670a62 (patch) | |
tree | 806874ae34cbe2835ca70f4ebb4abcb84e759674 /drivers/scsi/qla2xxx/qla_target.h | |
parent | 3fb4b161e0eeb5abc1c3bff2b72d784a23321a5b (diff) |
qla2xxx: fix sparse warnings introduced by previous target mode t10-dif patch
Fix sparse warnings introduce by "qla2xxx: T10-Dif: add T10-PI support".
Signed-off-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_target.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index f873e10451d2..fa5630b469f3 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h | |||
@@ -316,7 +316,7 @@ struct fcp_hdr { | |||
316 | uint8_t seq_id; | 316 | uint8_t seq_id; |
317 | uint8_t df_ctl; | 317 | uint8_t df_ctl; |
318 | uint16_t seq_cnt; | 318 | uint16_t seq_cnt; |
319 | uint16_t ox_id; | 319 | __be16 ox_id; |
320 | uint16_t rx_id; | 320 | uint16_t rx_id; |
321 | uint32_t parameter; | 321 | uint32_t parameter; |
322 | } __packed; | 322 | } __packed; |
@@ -441,7 +441,7 @@ struct ctio7_to_24xx { | |||
441 | union { | 441 | union { |
442 | struct { | 442 | struct { |
443 | uint16_t reserved1; | 443 | uint16_t reserved1; |
444 | uint16_t flags; | 444 | __le16 flags; |
445 | uint32_t residual; | 445 | uint32_t residual; |
446 | uint16_t ox_id; | 446 | uint16_t ox_id; |
447 | uint16_t scsi_status; | 447 | uint16_t scsi_status; |
@@ -527,7 +527,7 @@ struct ctio_crc2_to_fw { | |||
527 | 527 | ||
528 | uint32_t handle; /* System handle. */ | 528 | uint32_t handle; /* System handle. */ |
529 | uint16_t nport_handle; /* N_PORT handle. */ | 529 | uint16_t nport_handle; /* N_PORT handle. */ |
530 | uint16_t timeout; /* Command timeout. */ | 530 | __le16 timeout; /* Command timeout. */ |
531 | 531 | ||
532 | uint16_t dseg_count; /* Data segment count. */ | 532 | uint16_t dseg_count; /* Data segment count. */ |
533 | uint8_t vp_index; | 533 | uint8_t vp_index; |
@@ -538,15 +538,15 @@ struct ctio_crc2_to_fw { | |||
538 | uint8_t reserved1; | 538 | uint8_t reserved1; |
539 | uint32_t exchange_addr; /* rcv exchange address */ | 539 | uint32_t exchange_addr; /* rcv exchange address */ |
540 | uint16_t reserved2; | 540 | uint16_t reserved2; |
541 | uint16_t flags; /* refer to CTIO7 flags values */ | 541 | __le16 flags; /* refer to CTIO7 flags values */ |
542 | uint32_t residual; | 542 | uint32_t residual; |
543 | uint16_t ox_id; | 543 | __le16 ox_id; |
544 | uint16_t scsi_status; | 544 | uint16_t scsi_status; |
545 | uint32_t relative_offset; | 545 | __le32 relative_offset; |
546 | uint32_t reserved5; | 546 | uint32_t reserved5; |
547 | uint32_t transfer_length; /* total fc transfer length */ | 547 | __le32 transfer_length; /* total fc transfer length */ |
548 | uint32_t reserved6; | 548 | uint32_t reserved6; |
549 | uint32_t crc_context_address[2];/* Data segment address. */ | 549 | __le32 crc_context_address[2];/* Data segment address. */ |
550 | uint16_t crc_context_len; /* Data segment length. */ | 550 | uint16_t crc_context_len; /* Data segment length. */ |
551 | uint16_t reserved_1; /* MUST be set to 0. */ | 551 | uint16_t reserved_1; /* MUST be set to 0. */ |
552 | } __packed; | 552 | } __packed; |