diff options
author | Bart Van Assche <bvanassche@acm.org> | 2023-03-22 22:55:11 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-03-25 02:20:00 +0300 |
commit | 65e5447a10140a91bb10b67e30dccab4357892e2 (patch) | |
tree | 83845cea7b4df3a84de5d395ffc2b9df74a3558e | |
parent | a5b78e81c712c3eb3229cdc4fa559dea60f93cd8 (diff) | |
download | linux-65e5447a10140a91bb10b67e30dccab4357892e2.tar.xz |
scsi: xen-scsifront: Declare SCSI host template const
Make it explicit that the SCSI host template is not modified.
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-77-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/xen-scsifront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c index 71a3bb83984c..caae61aa2afe 100644 --- a/drivers/scsi/xen-scsifront.c +++ b/drivers/scsi/xen-scsifront.c @@ -770,7 +770,7 @@ static void scsifront_sdev_destroy(struct scsi_device *sdev) } } -static struct scsi_host_template scsifront_sht = { +static const struct scsi_host_template scsifront_sht = { .module = THIS_MODULE, .name = "Xen SCSI frontend driver", .queuecommand = scsifront_queuecommand, |