Re: [PATCH v2 04/82] ata: Declare SCSI host templates const

Serge Semin
2023-03-09T23:37:08Z

On Thu, Mar 09, 2023 at 11:24:56AM -0800, Bart Van Assche wrote:
> Make it explicit that ATA host templates are not modified.
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
> Cc: Christoph Hellwig <hch@lst.de>
> Cc: Ming Lei <ming.lei@redhat.com>
> Cc: Hannes Reinecke <hare@suse.de>
> Cc: John Garry <john.g.garry@oracle.com>
> Cc: Mike Christie <michael.christie@oracle.com>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---

[nip]

> drivers/ata/ahci_dwc.c | 2 +-

[nip]

> 111 files changed, 129 insertions(+), 129 deletions(-)
>

[nip]

> diff --git a/drivers/ata/ahci_dwc.c b/drivers/ata/ahci_dwc.c
> index 8fb66860db31..4bfbb09cdc02 100644
> --- a/drivers/ata/ahci_dwc.c
> +++ b/drivers/ata/ahci_dwc.c
> @@ -398,7 +398,7 @@ static const struct ata_port_info ahci_dwc_port_info = {
> .port_ops = &ahci_dwc_port_ops,
> };
>
> -static struct scsi_host_template ahci_dwc_scsi_info = {
> +static const struct scsi_host_template ahci_dwc_scsi_info = {
> AHCI_SHT(DRV_NAME),
> };
>

For DWC AHCI SATA
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>

-Serge(y)

[nip]