From: Jason Yan <yanaijie@huawei.com>
To: Niklas Cassel <nks@flawful.org>,
Damien Le Moal <dlemoal@kernel.org>,
John Garry <john.g.garry@oracle.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Hannes Reinecke <hare@suse.com>, <linux-ide@vger.kernel.org>,
<linux-scsi@vger.kernel.org>, Hannes Reinecke <hare@suse.de>,
Niklas Cassel <niklas.cassel@wdc.com>
Subject: Re: [PATCH v2 2/8] ata,scsi: remove ata_sas_port_{start,stop} callbacks
Date: Thu, 20 Jul 2023 09:45:49 +0800 [thread overview]
Message-ID: <ebf714b4-f4ef-8c3c-75f7-3e75649b8d77@huawei.com> (raw)
In-Reply-To: <20230720004257.307031-3-nks@flawful.org>
On 2023/7/20 8:42, Niklas Cassel wrote:
> From: Hannes Reinecke <hare@suse.de>
>
> Callbacks are empty now, so remove them.
>
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
> ---
> drivers/ata/libata-sata.c | 34 ----------------------------------
> drivers/scsi/libsas/sas_ata.c | 2 --
> include/linux/libata.h | 2 --
> 3 files changed, 38 deletions(-)
>
> diff --git a/drivers/ata/libata-sata.c b/drivers/ata/libata-sata.c
> index 99d4ab04bcce..d3b595294eee 100644
> --- a/drivers/ata/libata-sata.c
> +++ b/drivers/ata/libata-sata.c
> @@ -1144,40 +1144,6 @@ struct ata_port *ata_sas_port_alloc(struct ata_host *host,
> }
> EXPORT_SYMBOL_GPL(ata_sas_port_alloc);
>
> -/**
> - * ata_sas_port_start - Set port up for dma.
> - * @ap: Port to initialize
> - *
> - * Called just after data structures for each port are
> - * initialized.
> - *
> - * May be used as the port_start() entry in ata_port_operations.
> - *
> - * LOCKING:
> - * Inherited from caller.
> - */
> -int ata_sas_port_start(struct ata_port *ap)
> -{
> - /* the port is marked as frozen at allocation time */
> - return 0;
> -}
> -EXPORT_SYMBOL_GPL(ata_sas_port_start);
> -
> -/**
> - * ata_sas_port_stop - Undo ata_sas_port_start()
> - * @ap: Port to shut down
> - *
> - * May be used as the port_stop() entry in ata_port_operations.
> - *
> - * LOCKING:
> - * Inherited from caller.
> - */
> -
> -void ata_sas_port_stop(struct ata_port *ap)
> -{
> -}
> -EXPORT_SYMBOL_GPL(ata_sas_port_stop);
> -
> /**
> * ata_sas_async_probe - simply schedule probing and return
> * @ap: Port to probe
> diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
> index 77714a495cbb..7ead1f1be97f 100644
> --- a/drivers/scsi/libsas/sas_ata.c
> +++ b/drivers/scsi/libsas/sas_ata.c
> @@ -565,8 +565,6 @@ static struct ata_port_operations sas_sata_ops = {
> .qc_prep = ata_noop_qc_prep,
> .qc_issue = sas_ata_qc_issue,
> .qc_fill_rtf = sas_ata_qc_fill_rtf,
> - .port_start = ata_sas_port_start,
> - .port_stop = ata_sas_port_stop,
Hi Niklas,
->port_start is NULL now but ata_sas_port_init() is still using it
without checking whether it is NULL. I know the patch #3 will remove it
finally. But this will bring a great inconvenience because the kernel
will crash when bisectting to this commit.
Either put patch #3 before this patch or fold patch #3 directly into
path #2 ?
Thanks,
Jason
next prev parent reply other threads:[~2023-07-20 1:45 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-20 0:42 [PATCH v2 0/8] libata: remove references to 'old' error handler Niklas Cassel
2023-07-20 0:42 ` [PATCH v2 1/8] ata: remove reference to non-existing error_handler() Niklas Cassel
2023-07-20 8:47 ` John Garry
2023-07-21 13:19 ` Niklas Cassel
2023-07-20 0:42 ` [PATCH v2 2/8] ata,scsi: remove ata_sas_port_{start,stop} callbacks Niklas Cassel
2023-07-20 1:45 ` Jason Yan [this message]
2023-07-20 0:42 ` [PATCH v2 3/8] ata,scsi: remove ata_sas_port_destroy() Niklas Cassel
2023-07-20 8:57 ` John Garry
2023-07-21 13:33 ` Niklas Cassel
2023-07-25 7:34 ` John Garry
2023-07-20 0:42 ` [PATCH v2 4/8] ata: remove ata_sas_sync_probe() Niklas Cassel
2023-07-20 1:53 ` Jason Yan
2023-07-20 0:42 ` [PATCH v2 5/8] ata: inline ata_port_probe() Niklas Cassel
2023-07-20 1:53 ` Jason Yan
2023-07-20 0:42 ` [PATCH v2 6/8] ata,scsi: cleanup ata_port_probe() Niklas Cassel
2023-07-20 1:55 ` Jason Yan
2023-07-20 8:27 ` John Garry
2023-07-21 13:43 ` Niklas Cassel
2023-07-20 0:42 ` [PATCH v2 7/8] ata: sata_sx4: drop already completed TODO Niklas Cassel
2023-07-20 1:56 ` Jason Yan
2023-07-20 5:49 ` Hannes Reinecke
2023-07-20 0:42 ` [PATCH v2 8/8] ata: remove ata_bus_probe() Niklas Cassel
2023-07-20 1:56 ` Jason Yan
2023-07-20 5:49 ` Hannes Reinecke
2023-07-20 8:12 ` John Garry
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=ebf714b4-f4ef-8c3c-75f7-3e75649b8d77@huawei.com \
--to=yanaijie@huawei.com \
--cc=dlemoal@kernel.org \
--cc=hare@suse.com \
--cc=hare@suse.de \
--cc=jejb@linux.ibm.com \
--cc=john.g.garry@oracle.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=niklas.cassel@wdc.com \
--cc=nks@flawful.org \
/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