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

index 5d4f67ba74c0d88b7c5d8aadab5fb12c2e2c1256..d1a2a22ffe8c7daf890699ac8193a2808e13e7e3 100644 (file)
@@ -211,7 +211,7 @@ static void cumanascsi_write(struct NCR5380_hostdata *hostdata,
 
 #include "../NCR5380.c"
 
-static struct scsi_host_template cumanascsi_template = {
+static const struct scsi_host_template cumanascsi_template = {
        .module                 = THIS_MODULE,
        .name                   = "Cumana 16-bit SCSI",
        .info                   = cumanascsi_info,
index d15053f024726fdb01693f9a9fff98ab8b857775..c5d8f4313b31a65efcc49a7c24ff4bca50fb2bd7 100644 (file)
@@ -356,7 +356,7 @@ static int cumanascsi_2_show_info(struct seq_file *m, struct Scsi_Host *host)
        return 0;
 }
 
-static struct scsi_host_template cumanascsi2_template = {
+static const struct scsi_host_template cumanascsi2_template = {
        .module                         = THIS_MODULE,
        .show_info                      = cumanascsi_2_show_info,
        .write_info                     = cumanascsi_2_set_proc_info,