Commit 1785ced8 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: mpt3sas: Declare SCSI host template const

Make it explicit that the SCSI host template is not modified.
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-55-bvanassche@acm.orgSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b85f82f3
...@@ -11926,7 +11926,7 @@ static void scsih_map_queues(struct Scsi_Host *shost) ...@@ -11926,7 +11926,7 @@ static void scsih_map_queues(struct Scsi_Host *shost)
} }
/* shost template for SAS 2.0 HBA devices */ /* shost template for SAS 2.0 HBA devices */
static struct scsi_host_template mpt2sas_driver_template = { static const struct scsi_host_template mpt2sas_driver_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.name = "Fusion MPT SAS Host", .name = "Fusion MPT SAS Host",
.proc_name = MPT2SAS_DRIVER_NAME, .proc_name = MPT2SAS_DRIVER_NAME,
...@@ -11964,7 +11964,7 @@ static struct raid_function_template mpt2sas_raid_functions = { ...@@ -11964,7 +11964,7 @@ static struct raid_function_template mpt2sas_raid_functions = {
}; };
/* shost template for SAS 3.0 HBA devices */ /* shost template for SAS 3.0 HBA devices */
static struct scsi_host_template mpt3sas_driver_template = { static const struct scsi_host_template mpt3sas_driver_template = {
.module = THIS_MODULE, .module = THIS_MODULE,
.name = "Fusion MPT SAS Host", .name = "Fusion MPT SAS Host",
.proc_name = MPT3SAS_DRIVER_NAME, .proc_name = MPT3SAS_DRIVER_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment