From: Geliang Tang <geliangtang@gmail.com>
To: qla2xxx-upstream@qlogic.com,
"James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Geliang Tang <geliangtang@gmail.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] qla2xxx: use sg_virt()
Date: Thu, 23 Mar 2017 21:16:33 +0800 [thread overview]
Message-ID: <6441bf33ffc2cd73fdd44671030c8a72e7a81403.1490258759.git.geliangtang@gmail.com> (raw)
In-Reply-To: <a41fae798473b657f09859ae113403655b1717f9.1490258141.git.geliangtang@gmail.com>
Use sg_virt() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
drivers/scsi/qla2xxx/qla_isr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 3203367..9610d85 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -1991,7 +1991,7 @@ qla2x00_handle_dif_error(srb_t *sp, struct sts_entry_24xx *sts24)
return 1;
}
- spt = page_address(sg_page(sg)) + sg->offset;
+ spt = sg_virt(sg);
spt += j;
spt->app_tag = 0xffff;
--
2.9.3
next prev parent reply other threads:[~2017-03-23 13:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-23 13:16 [PATCH] crypto: ixp4xx - Use sg_virt() Geliang Tang
2017-03-23 13:16 ` [PATCH] iommu: use sg_phys() Geliang Tang
2017-03-23 13:16 ` [PATCH] microblaze: " Geliang Tang
2017-05-29 9:00 ` Michal Simek
2017-03-23 13:16 ` Geliang Tang [this message]
2017-03-23 17:48 ` [PATCH] crypto: ixp4xx - Use sg_virt() David Miller
2017-03-24 14:17 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6441bf33ffc2cd73fdd44671030c8a72e7a81403.1490258759.git.geliangtang@gmail.com \
--to=geliangtang@gmail.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=qla2xxx-upstream@qlogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®