scst_local: Declare SCSI host template const

Make it explicit that the SCSI host template is not modified.
This commit is contained in:
Gleb Chesnokov
2023-04-28 14:26:40 +03:00
parent c0aea55c52
commit 33dedb2946

View File

@@ -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,