diff options
author | Bart Van Assche <bvanassche@acm.org> | 2023-03-22 12:54:37 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-03-24 19:19:56 -0400 |
commit | 207761bf1a8dfcafec5ba3310253b3ed3c5ce4b3 (patch) | |
tree | c05994dc92239a1a6f606f2d4aa74d043cf85bd1 /drivers | |
parent | e8c0ced993ddcb01af21c269983205c7c16c5ffd (diff) | |
download | linux-stable-207761bf1a8dfcafec5ba3310253b3ed3c5ce4b3.tar.gz linux-stable-207761bf1a8dfcafec5ba3310253b3ed3c5ce4b3.tar.bz2 linux-stable-207761bf1a8dfcafec5ba3310253b3ed3c5ce4b3.zip |
scsi: hpsa: Declare SCSI host template const
Make it explicit that the SCSI host template is not modified.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-43-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/hpsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index f6da34850af9..ff8436fe6dd1 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -967,7 +967,7 @@ ATTRIBUTE_GROUPS(hpsa_shost); #define HPSA_NRESERVED_CMDS (HPSA_CMDS_RESERVED_FOR_DRIVER +\ HPSA_MAX_CONCURRENT_PASSTHRUS) -static struct scsi_host_template hpsa_driver_template = { +static const struct scsi_host_template hpsa_driver_template = { .module = THIS_MODULE, .name = HPSA, .proc_name = HPSA, |