|
From: Gleb C. <lna...@ya...> - 2023-04-28 12:24:25
|
Commit: c0aea55 GitHub URL: https://github.com/SCST-project/scst/commit/c0aea55c52a80eb3936ca2e8aa43123a29f3a882 Author: Gleb Chesnokov Date: 2023-04-28T15:22:58+03:00 Log Message: ----------- qla2x00t: Declare SCSI host template const Make it explicit that the SCSI host template is not modified. Modified Paths: -------------- qla2x00t/qla_gbl.h | 2 +- qla2x00t/qla_mid.c | 2 +- qla2x00t/qla_os.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) =================================================================== diff --git a/qla2x00t/qla_gbl.h b/qla2x00t/qla_gbl.h index 936bc2d..8970ddd 100644 --- a/qla2x00t/qla_gbl.h +++ b/qla2x00t/qla_gbl.h @@ -131,7 +131,7 @@ extern int qla2x00_post_uevent_work(struct scsi_qla_host *, u32); extern int qla81xx_restart_mpi_firmware(scsi_qla_host_t *); -extern struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *, +extern struct scsi_qla_host *qla2x00_create_host(const struct scsi_host_template *, struct qla_hw_data *); extern void qla2x00_free_host(struct scsi_qla_host *); extern void qla2x00_relogin(struct scsi_qla_host *); diff --git a/qla2x00t/qla_mid.c b/qla2x00t/qla_mid.c index 8961c85..b591d7e 100644 --- a/qla2x00t/qla_mid.c +++ b/qla2x00t/qla_mid.c @@ -495,7 +495,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport) scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); struct qla_hw_data *ha = base_vha->hw; scsi_qla_host_t *vha; - struct scsi_host_template *sht = &qla2xxx_driver_template; + const struct scsi_host_template *sht = &qla2xxx_driver_template; struct Scsi_Host *host; vha = qla2x00_create_host(sht, ha); diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index 1b49c4d..2976b1b 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -3619,8 +3619,8 @@ qla2x00_mem_free(struct qla_hw_data *ha) ha->gid_list_dma = 0; } -struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht, - struct qla_hw_data *ha) +struct scsi_qla_host *qla2x00_create_host(const struct scsi_host_template *sht, + struct qla_hw_data *ha) { struct Scsi_Host *host; struct scsi_qla_host *vha = NULL; |