From: Bart Van Assche Date: Wed, 22 Mar 2023 19:54:01 +0000 (-0700) Subject: scsi: RDMA/srp: Declare the SCSI host template const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4281af9d9f13dab7233f6d168d0be310bd305291;p=linux.git scsi: RDMA/srp: Declare the SCSI host template const Make it explicit that the SRP host template is not modified. Acked-by: Leon Romanovsky Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20230322195515.1267197-7-bvanassche@acm.org Signed-off-by: Martin K. Petersen --- diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index df21b30b77351..3446fbf5a560b 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -3077,7 +3077,7 @@ static struct attribute *srp_host_attrs[] = { ATTRIBUTE_GROUPS(srp_host); -static struct scsi_host_template srp_template = { +static const struct scsi_host_template srp_template = { .module = THIS_MODULE, .name = "InfiniBand SRP initiator", .proc_name = DRV_NAME,