From 33dedb2946140b28b422372796e5fa429f34e2b3 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Fri, 28 Apr 2023 14:26:40 +0300 Subject: [PATCH] scst_local: Declare SCSI host template const Make it explicit that the SCSI host template is not modified. --- scst_local/scst_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst_local/scst_local.c b/scst_local/scst_local.c index bffe2550a..7577b9857 100644 --- a/scst_local/scst_local.c +++ b/scst_local/scst_local.c @@ -1375,7 +1375,7 @@ static struct scst_tgt_template scst_local_targ_tmpl = { #endif }; -static struct scsi_host_template scst_lcl_ini_driver_template = { +static const struct scsi_host_template scst_lcl_ini_driver_template = { .name = SCST_LOCAL_NAME, .queuecommand = scst_local_queuecommand, .change_queue_depth = scst_local_change_queue_depth,