scsi: mesh: Declare SCSI host template const
authorBart Van Assche <bvanassche@acm.org>
Wed, 22 Mar 2023 19:54:47 +0000 (12:54 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Mar 2023 23:19:57 +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-53-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mesh.c

index 84b541a57b7b1ddb43bb3bc74707278c621dc684..e276583c590c38ee237e33caaa45a95ba87defe8 100644 (file)
@@ -1830,7 +1830,7 @@ static int mesh_shutdown(struct macio_dev *mdev)
        return 0;
 }
 
-static struct scsi_host_template mesh_template = {
+static const struct scsi_host_template mesh_template = {
        .proc_name                      = "mesh",
        .name                           = "MESH",
        .queuecommand                   = mesh_queue,