diff options
author | Bart Van Assche <bvanassche@acm.org> | 2023-03-22 20:54:31 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-03-25 00:19:22 +0100 |
commit | bf3614bd7e8a3727d29b01e76596daa7c40f5be0 (patch) | |
tree | 168dc68d28dc8d8b83ee81ee068b81a8e59301b2 /drivers/scsi/fnic/fnic_main.c | |
parent | scsi: fcoe: Declare SCSI host template const (diff) | |
download | linux-bf3614bd7e8a3727d29b01e76596daa7c40f5be0.tar.xz linux-bf3614bd7e8a3727d29b01e76596daa7c40f5be0.zip |
scsi: fnic: Declare 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-37-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_main.c')
-rw-r--r-- | drivers/scsi/fnic/fnic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index 1077110ab273..984bc5fc55e2 100644 --- a/drivers/scsi/fnic/fnic_main.c +++ b/drivers/scsi/fnic/fnic_main.c @@ -95,7 +95,7 @@ static int fnic_slave_alloc(struct scsi_device *sdev) return 0; } -static struct scsi_host_template fnic_host_template = { +static const struct scsi_host_template fnic_host_template = { .module = THIS_MODULE, .name = DRV_NAME, .queuecommand = fnic_queuecommand, |