Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: cumana: 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-26-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
202423c5 4df23b30

+2 -2
+1 -1
drivers/scsi/arm/cumana_1.c
··· 211 211 212 212 #include "../NCR5380.c" 213 213 214 - static struct scsi_host_template cumanascsi_template = { 214 + static const struct scsi_host_template cumanascsi_template = { 215 215 .module = THIS_MODULE, 216 216 .name = "Cumana 16-bit SCSI", 217 217 .info = cumanascsi_info,
+1 -1
drivers/scsi/arm/cumana_2.c
··· 356 356 return 0; 357 357 } 358 358 359 - static struct scsi_host_template cumanascsi2_template = { 359 + static const struct scsi_host_template cumanascsi2_template = { 360 360 .module = THIS_MODULE, 361 361 .show_info = cumanascsi_2_show_info, 362 362 .write_info = cumanascsi_2_set_proc_info,