From: Bart Van Assche <bvanassche@acm.org>
To: "Martin K . Petersen" <martin.petersen@oracle.com>,
"James E . J . Bottomley" <jejb@linux.vnet.ibm.com>
Cc: linux-scsi@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Hannes Reinecke <hare@suse.com>, Ming Lei <ming.lei@redhat.com>,
Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH 7/7] Remove scsi_get_lba()
Date: Sun, 9 May 2021 14:43:07 -0700 [thread overview]
Message-ID: <20210509214307.4610-8-bvanassche@acm.org> (raw)
In-Reply-To: <20210509214307.4610-1-bvanassche@acm.org>
Remove scsi_get_lba() since all callers have been converted to
scsi_get_pos().
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
include/scsi/scsi_cmnd.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h
index 8147b1c0f265..f8084efa9838 100644
--- a/include/scsi/scsi_cmnd.h
+++ b/include/scsi/scsi_cmnd.h
@@ -285,11 +285,6 @@ static inline unsigned char scsi_get_prot_type(struct scsi_cmnd *scmd)
return scmd->prot_type;
}
-static inline sector_t scsi_get_lba(struct scsi_cmnd *scmd)
-{
- return blk_rq_pos(scmd->request);
-}
-
static inline sector_t scsi_get_pos(struct scsi_cmnd *scmd)
{
return blk_rq_pos(scmd->request);
prev parent reply other threads:[~2021-05-09 21:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-09 21:43 [PATCH 0/7] Rename scsi_get_lba() into scsi_get_pos() Bart Van Assche
2021-05-09 21:43 ` [PATCH 1/7] Introduce scsi_get_pos() Bart Van Assche
2021-05-09 21:43 ` [PATCH 2/7] iser: Use scsi_get_pos() instead of scsi_get_lba() Bart Van Assche
2021-05-09 21:43 ` [PATCH 3/7] zfcp: " Bart Van Assche
2021-05-09 21:43 ` [PATCH 4/7] iscsi: " Bart Van Assche
2021-05-10 1:14 ` Lee Duncan
2021-05-09 21:43 ` [PATCH 5/7] qla2xxx: " Bart Van Assche
2021-05-09 21:43 ` [PATCH 6/7] ufs: Fix the tracing code Bart Van Assche
2021-05-09 21:43 ` Bart Van Assche [this message]
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=20210509214307.4610-8-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=ming.lei@redhat.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