From: Bart Van Assche Date: Wed, 22 Mar 2023 19:54:06 +0000 (-0700) Subject: scsi: 3w-xxxx: Declare SCSI host template const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ca1b0e01f6b53778900b5671034157f275966480;p=linux.git scsi: 3w-xxxx: Declare SCSI host template const Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20230322195515.1267197-12-bvanassche@acm.org Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index ffdecb12d654c..36c34ced0cc18 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c @@ -2229,7 +2229,7 @@ static int tw_slave_configure(struct scsi_device *sdev) return 0; } /* End tw_slave_configure() */ -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "3ware Storage Controller", .queuecommand = tw_scsi_queue,