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

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

authored by

Bart Van Assche and committed by
Martin K. Petersen
914fa37a 8e64d59d

+1 -1
+1 -1
drivers/scsi/myrs.c
··· 1915 1915 kfree(sdev->hostdata); 1916 1916 } 1917 1917 1918 - static struct scsi_host_template myrs_template = { 1918 + static const struct scsi_host_template myrs_template = { 1919 1919 .module = THIS_MODULE, 1920 1920 .name = "DAC960", 1921 1921 .proc_name = "myrs",