projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d23901a
)
scsi: ps3rom: Declare SCSI host template const
author
Bart Van Assche
<bvanassche@acm.org>
Wed, 22 Mar 2023 19:55:00 +0000
(12:55 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 24 Mar 2023 23:19:58 +0000
(19:19 -0400)
Make it explicit that the SCSI host template is not modified.
Tested-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link:
https://lore.kernel.org/r/20230322195515.1267197-66-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ps3rom.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ps3rom.c
b/drivers/scsi/ps3rom.c
index 2b80cab703337229279573b1dccca61c945dd9b4..90495a832f34c528e55869289408700052e56b3d 100644
(file)
--- 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,