Commit 27c0e83b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Martin K. Petersen

scsi: qla2xxx: Use struct t10_pi_tuple

Instead of defining a local version of it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6ebf105c
...@@ -278,16 +278,6 @@ ...@@ -278,16 +278,6 @@
struct req_que; struct req_que;
struct qla_tgt_sess; struct qla_tgt_sess;
/*
* (sd.h is not exported, hence local inclusion)
* Data Integrity Field tuple.
*/
struct sd_dif_tuple {
__be16 guard_tag; /* Checksum */
__be16 app_tag; /* Opaque storage */
__be32 ref_tag; /* Target LBA or indirect LBA */
};
/* /*
* SCSI Request Block * SCSI Request Block
*/ */
......
...@@ -1828,7 +1828,7 @@ qla2x00_handle_dif_error(srb_t *sp, struct sts_entry_24xx *sts24) ...@@ -1828,7 +1828,7 @@ qla2x00_handle_dif_error(srb_t *sp, struct sts_entry_24xx *sts24)
if (scsi_prot_sg_count(cmd)) { if (scsi_prot_sg_count(cmd)) {
uint32_t i, j = 0, k = 0, num_ent; uint32_t i, j = 0, k = 0, num_ent;
struct scatterlist *sg; struct scatterlist *sg;
struct sd_dif_tuple *spt; struct t10_pi_tuple *spt;
/* Patch the corresponding protection tags */ /* Patch the corresponding protection tags */
scsi_for_each_prot_sg(cmd, sg, scsi_for_each_prot_sg(cmd, sg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment