Skip to content

Commit 8e2ab8c

Browse files
bvanasschemartinkpetersen
authored andcommitted
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>
1 parent f8adf8e commit 8e2ab8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/target/loopback/tcm_loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static int tcm_loop_target_reset(struct scsi_cmnd *sc)
298298
return FAILED;
299299
}
300300

301-
static struct scsi_host_template tcm_loop_driver_template = {
301+
static const struct scsi_host_template tcm_loop_driver_template = {
302302
.show_info = tcm_loop_show_info,
303303
.proc_name = "tcm_loopback",
304304
.name = "TCM_Loopback",

0 commit comments

Comments
 (0)