From: John Garry <john.garry@huawei.com>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Russell King - ARM Linux <linux@armlinux.org.uk>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Hannes Reinecke <hare@suse.de>,
Linux ARM <linux-arm-kernel@lists.infradead.org>,
linux-scsi <linux-scsi@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 2/3] acornscsi: remove tagged queuing vestiges
Date: Thu, 30 Sep 2021 09:17:52 +0100 [thread overview]
Message-ID: <327ae6c3-a64a-66b4-a2ec-ce66d5a39eeb@huawei.com> (raw)
In-Reply-To: <CAK8P3a3U+yaRe+P68DMQy_37jog=9gz7-dkHT10Vev3FrvMYyg@mail.gmail.com>
On 30/09/2021 08:21, Arnd Bergmann wrote:
> On Wed, Sep 15, 2021 at 11:16 AM John Garry<john.garry@huawei.com> wrote:
>> From: Hannes Reinecke<hare@suse.de>
>>
>> The acornscsi driver has a config option to enable tagged queuing,
>> but this option gets disabled in the driver itself with the comment
>> 'needs to be debugged'.
>> As this is a_really_ old driver I doubt anyone will be wanting to
>> invest time here, so remove the tagged queue vestiges and make
>> our live easier.
>>
>> Signed-off-by: Hannes Reinecke<hare@suse.de>
>> jpg: Use scsi_cmd_to_rq()
>> Signed-off-by: John Garry<john.garry@huawei.com>
> A few thousand randconfig builds later, I actually came across
> building this driver.
>
>> @@ -1821,7 +1776,7 @@ int acornscsi_reconnect_finish(AS_Host *host)
>> host->scsi.disconnectable = 0;
>> if (host->SCpnt->device->id == host->scsi.reconnected.target &&
>> host->SCpnt->device->lun == host->scsi.reconnected.lun &&
>> - host->SCpnt->tag == host->scsi.reconnected.tag) {
>> + scsi_cmd_to_tag(host->SCpnt) == host->scsi.reconnected.tag) {
>> #if (DEBUG & (DEBUG_QUEUES|DEBUG_DISCON))
>> DBG(host->SCpnt, printk("scsi%d.%c: reconnected",
>> host->host->host_no, acornscsi_target(host)));
> drivers/scsi/arm/acornscsi.c: In function 'acornscsi_reconnect_finish':
> drivers/scsi/arm/acornscsi.c:1779:6: error: implicit declaration of
> function 'scsi_cmd_to_tag'; did you mean 'scsi_cmd_to_rq'?
> [-Werror=implicit-function-declaration]
> scsi_cmd_to_tag(host->SCpnt) == host->scsi.reconnected.tag) {
> ^~~~~~~~~~~~~~~
> scsi_cmd_to_rq
>
> I have no idea what this is meant to do instead, but scsi_cmd_to_tag()
> does not appear to be defined in any kernel I can find.
Hannes added new function scsi_cmd_to_tag() in v1 series, but I removed
it when I reposted the v2 series. But then missed this reference.
I think the build fix should be as follows:
--- a/drivers/scsi/arm/acornscsi.c
+++ b/drivers/scsi/arm/acornscsi.c
@@ -1776,7 +1776,7 @@ int acornscsi_reconnect_finish(AS_Host *host)
host->scsi.disconnectable = 0;
if (host->SCpnt->device->id == host->scsi.reconnected.target &&
host->SCpnt->device->lun == host->scsi.reconnected.lun &&
- scsi_cmd_to_tag(host->SCpnt) == host->scsi.reconnected.tag) {
+ scsi_cmd_to_rq(host->SCpnt)->tag ==
host->scsi.reconnected.tag) {
Let me know if you want us to post a patch for this.
Thanks,
John
next prev parent reply other threads:[~2021-09-30 8:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-15 9:07 [PATCH v2 0/3] scsi: remove last references to scsi_cmnd.tag John Garry
2021-09-15 9:07 ` [PATCH v2 1/3] fas216: kill scmd->tag John Garry
2021-09-15 9:07 ` [PATCH v2 2/3] acornscsi: remove tagged queuing vestiges John Garry
2021-09-30 7:21 ` Arnd Bergmann
2021-09-30 8:17 ` John Garry [this message]
2021-10-12 23:45 ` Bart Van Assche
2021-09-15 9:07 ` [PATCH v2 3/3] scsi: remove 'current_tag' John Garry
2021-09-16 2:52 ` Bart Van Assche
2021-09-22 4:44 ` [PATCH v2 0/3] scsi: remove last references to scsi_cmnd.tag Martin K. Petersen
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=327ae6c3-a64a-66b4-a2ec-ce66d5a39eeb@huawei.com \
--to=john.garry@huawei.com \
--cc=arnd@kernel.org \
--cc=hare@suse.de \
--cc=jejb@linux.ibm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=martin.petersen@oracle.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®