projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fabb7f
)
scsi: mpi3mr: Declare SCSI host template const
author
Bart Van Assche
<bvanassche@acm.org>
Wed, 22 Mar 2023 19:54:48 +0000
(12:54 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Fri, 24 Mar 2023 23:19:57 +0000
(19:19 -0400)
Make it explicit that the SCSI host template is not modified.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link:
https://lore.kernel.org/r/20230322195515.1267197-54-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mpi3mr/mpi3mr_os.c
b/drivers/scsi/mpi3mr/mpi3mr_os.c
index 6eaeba41072cb53e4ff2354fa4241815b2c7a24c..207a607d89979920e9dd4ecee34d6ce2bdf21703 100644
(file)
--- a/
drivers/scsi/mpi3mr/mpi3mr_os.c
+++ b/
drivers/scsi/mpi3mr/mpi3mr_os.c
@@
-4757,7
+4757,7
@@
out:
return retval;
}
-static struct scsi_host_template mpi3mr_driver_template = {
+static
const
struct scsi_host_template mpi3mr_driver_template = {
.module = THIS_MODULE,
.name = "MPI3 Storage Controller",
.proc_name = MPI3MR_DRIVER_NAME,