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

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

authored by

Bart Van Assche and committed by
Martin K. Petersen
8e2ab8cd f8adf8e9

+1 -1
+1 -1
drivers/target/loopback/tcm_loop.c
··· 298 298 return FAILED; 299 299 } 300 300 301 - static struct scsi_host_template tcm_loop_driver_template = { 301 + static const struct scsi_host_template tcm_loop_driver_template = { 302 302 .show_info = tcm_loop_show_info, 303 303 .proc_name = "tcm_loopback", 304 304 .name = "TCM_Loopback",