From: Bart Van Assche Date: Wed, 22 Mar 2023 19:55:00 +0000 (-0700) Subject: scsi: ps3rom: Declare SCSI host template const X-Git-Tag: v6.4-rc1~133^2~26^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fe61364e7d1b0e74f0b49b5a0d6dd8130e71c53;p=thirdparty%2Flinux.git scsi: ps3rom: Declare SCSI host template const Make it explicit that the SCSI host template is not modified. Tested-by: Geoff Levand Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20230322195515.1267197-66-bvanassche@acm.org Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index 2b80cab703337..90495a832f34c 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c @@ -323,7 +323,7 @@ done: return IRQ_HANDLED; } -static struct scsi_host_template ps3rom_host_template = { +static const struct scsi_host_template ps3rom_host_template = { .name = DEVICE_NAME, .slave_configure = ps3rom_slave_configure, .queuecommand = ps3rom_queuecommand,