mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
scsi: qla2xxx: 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-68-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
796e8f8082
commit
421c20b766
@@ -213,7 +213,7 @@ extern void qla2x00_free_exchoffld_buffer(struct qla_hw_data *);
|
|||||||
|
|
||||||
extern int qla81xx_restart_mpi_firmware(scsi_qla_host_t *);
|
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 *);
|
struct qla_hw_data *);
|
||||||
extern void qla2x00_free_host(struct scsi_qla_host *);
|
extern void qla2x00_free_host(struct scsi_qla_host *);
|
||||||
extern void qla2x00_relogin(struct scsi_qla_host *);
|
extern void qla2x00_relogin(struct scsi_qla_host *);
|
||||||
|
|||||||
@@ -496,7 +496,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport)
|
|||||||
scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost);
|
scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost);
|
||||||
struct qla_hw_data *ha = base_vha->hw;
|
struct qla_hw_data *ha = base_vha->hw;
|
||||||
scsi_qla_host_t *vha;
|
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;
|
struct Scsi_Host *host;
|
||||||
|
|
||||||
vha = qla2x00_create_host(sht, ha);
|
vha = qla2x00_create_host(sht, ha);
|
||||||
|
|||||||
@@ -5004,7 +5004,7 @@ qla2x00_mem_free(struct qla_hw_data *ha)
|
|||||||
ha->vp_map = NULL;
|
ha->vp_map = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht,
|
struct scsi_qla_host *qla2x00_create_host(const struct scsi_host_template *sht,
|
||||||
struct qla_hw_data *ha)
|
struct qla_hw_data *ha)
|
||||||
{
|
{
|
||||||
struct Scsi_Host *host;
|
struct Scsi_Host *host;
|
||||||
|
|||||||
Reference in New Issue
Block a user