Skip to contentSkip to conversation

scsi: hpsa: make access_method const

PATCH New Bhumika Goyal 1 participant 1 message Aug 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: hpsa: make access_method const

Make these const as they are not modified anywhere.

---
To compile-test hpsa.h, I test-compiled scsi/hpsa.c which includes this file.

 drivers/scsi/hpsa.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/scsi/hpsa.h +4 -4
index 018f980..4688b8f 100644
@@ -628,28 +628,28 @@ static unsigned long SA5_ioaccel_mode1_completed(struct ctlr_info *h, u8 q)
 	.command_completed =	SA5_completed,
 };
 
-static struct access_method SA5_ioaccel_mode1_access = {
+static const struct access_method SA5_ioaccel_mode1_access = {
 	.submit_command =	SA5_submit_command,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_ioaccel_mode1_intr_pending,
 	.command_completed =	SA5_ioaccel_mode1_completed,
 };
 
-static struct access_method SA5_ioaccel_mode2_access = {
+static const struct access_method SA5_ioaccel_mode2_access = {
 	.submit_command =	SA5_submit_command_ioaccel2,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_performant_intr_pending,
 	.command_completed =	SA5_performant_completed,
 };
 
-static struct access_method SA5_performant_access = {
+static const struct access_method SA5_performant_access = {
 	.submit_command =	SA5_submit_command,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_performant_intr_pending,
 	.command_completed =	SA5_performant_completed,
 };
 
-static struct access_method SA5_performant_access_no_read = {
+static const struct access_method SA5_performant_access_no_read = {
 	.submit_command =	SA5_submit_command_no_read,
 	.set_intr_mask =	SA5_performant_intr_mask,
 	.intr_pending =		SA5_performant_intr_pending,
Signature · 1 line
1.9.1