scsi: message: fusion: Declare SCSI host template members const
Make it explicit that the SCSI host templates are not modified. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230322195515.1267197-8-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
4281af9d9f
commit
95a24cf170
@ -105,7 +105,7 @@ static int mptfc_abort(struct scsi_cmnd *SCpnt);
|
||||
static int mptfc_dev_reset(struct scsi_cmnd *SCpnt);
|
||||
static int mptfc_bus_reset(struct scsi_cmnd *SCpnt);
|
||||
|
||||
static struct scsi_host_template mptfc_driver_template = {
|
||||
static const struct scsi_host_template mptfc_driver_template = {
|
||||
.module = THIS_MODULE,
|
||||
.proc_name = "mptfc",
|
||||
.show_info = mptscsih_show_info,
|
||||
|
@ -1997,7 +1997,7 @@ done:
|
||||
}
|
||||
|
||||
|
||||
static struct scsi_host_template mptsas_driver_template = {
|
||||
static const struct scsi_host_template mptsas_driver_template = {
|
||||
.module = THIS_MODULE,
|
||||
.proc_name = "mptsas",
|
||||
.show_info = mptscsih_show_info,
|
||||
|
@ -820,7 +820,7 @@ static void mptspi_slave_destroy(struct scsi_device *sdev)
|
||||
mptscsih_slave_destroy(sdev);
|
||||
}
|
||||
|
||||
static struct scsi_host_template mptspi_driver_template = {
|
||||
static const struct scsi_host_template mptspi_driver_template = {
|
||||
.module = THIS_MODULE,
|
||||
.proc_name = "mptspi",
|
||||
.show_info = mptscsih_show_info,
|
||||
|
Loading…
Reference in New Issue
Block a user