diff options
author | Bart Van Assche <bvanassche@acm.org> | 2023-03-22 12:55:06 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-03-24 19:19:59 -0400 |
commit | 8fb5b37e070e3c5434be816937cadf06873bcbe1 (patch) | |
tree | ef0de0c25d1d5e6bd1697a13d87f4e414d2f19a4 | |
parent | 077126d6b9415592bacc5e6743643e67ff224dc8 (diff) | |
download | linux-stable-8fb5b37e070e3c5434be816937cadf06873bcbe1.tar.gz linux-stable-8fb5b37e070e3c5434be816937cadf06873bcbe1.tar.bz2 linux-stable-8fb5b37e070e3c5434be816937cadf06873bcbe1.zip |
scsi: snic: 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-72-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/snic/snic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/snic/snic_main.c b/drivers/scsi/snic/snic_main.c index 174f7811fe50..cc824dcfe7da 100644 --- a/drivers/scsi/snic/snic_main.c +++ b/drivers/scsi/snic/snic_main.c @@ -100,7 +100,7 @@ snic_change_queue_depth(struct scsi_device *sdev, int qdepth) return sdev->queue_depth; } -static struct scsi_host_template snic_host_template = { +static const struct scsi_host_template snic_host_template = { .module = THIS_MODULE, .name = SNIC_DRV_NAME, .queuecommand = snic_queuecommand, |