Re: [PATCH 02/81] scsi: core: Declare most SCSI host template pointers const

Bart Van Assche
2023-03-06T16:17:28Z

On 3/6/23 06:29, John Garry wrote:
> You wrote that most pointers were now cast as const - which ones where
> not? From a quick scan they all seem to be const

Hi Garry,

Some SCSI drivers modify one of more members of the SCSI host template.
An example can be found in drivers/scsi/pcmcia/nsp_cs.c:

sht->name = data->nspinfo;

Another example from drivers/scsi/bnx2fc/bnx2fc_fcoe.c:

bnx2fc_shost_template.can_queue = hba->max_outstanding_cmds;

Thanks,

Bart.