]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
scsi: elx: efct: Declare SCSI host template const
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Mar 2023 19:54:27 +0000 (12:54 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Mar 2023 23:19:22 +0000 (19:19 -0400)
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-33-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/elx/efct/efct_xport.c

index 9495cedcc0b95af9e6d18815e14e86914cb5e597..cf4dced20b8b763f865b32dbd374ef3f950fa13e 100644 (file)
@@ -10,7 +10,7 @@
 static struct dentry *efct_debugfs_root;
 static atomic_t efct_debugfs_count;
 
-static struct scsi_host_template efct_template = {
+static const struct scsi_host_template efct_template = {
        .module                 = THIS_MODULE,
        .name                   = EFCT_DRIVER_NAME,
        .supported_mode         = MODE_TARGET,