]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
scsi: qedf: Declare host template const
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Mar 2023 19:54:32 +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-38-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c

index 35e16600fc637defe2a3f67ef838d4f0e12bb559..e7f2560b9f7d4796a65c9c5af3fbabad00c17da5 100644 (file)
@@ -979,7 +979,7 @@ static int qedf_slave_configure(struct scsi_device *sdev)
        return 0;
 }
 
-static struct scsi_host_template qedf_host_template = {
+static const struct scsi_host_template qedf_host_template = {
        .module         = THIS_MODULE,
        .name           = QEDF_MODULE_NAME,
        .this_id        = -1,