Re: [PATCH v2 63/82] scsi: pcmcia-pm8001: Declare SCSI host template const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 9, 2023 at 8:29 PM Bart Van Assche <bvanassche@xxxxxxx> wrote:
>
> Make it explicit that the SCSI host template is not modified.
>
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
Acked-by: Jack Wang <jinpu.wang@xxxxxxxxx>

>
> ---
>  drivers/scsi/pm8001/pm8001_init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
> index 7e589fe3e010..8b9490011e36 100644
> --- a/drivers/scsi/pm8001/pm8001_init.c
> +++ b/drivers/scsi/pm8001/pm8001_init.c
> @@ -96,7 +96,7 @@ static void pm8001_map_queues(struct Scsi_Host *shost)
>  /*
>   * The main structure which LLDD must register for scsi core.
>   */
> -static struct scsi_host_template pm8001_sht = {
> +static const struct scsi_host_template pm8001_sht = {
>         .module                 = THIS_MODULE,
>         .name                   = DRV_NAME,
>         .proc_name              = DRV_NAME,




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux