Skip to contentSkip to conversation

[2.6 patch make struct scsi_dh_devlist's static

PATCH Chandra Seetharaman 2 participants 2 messages Aug 11, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

This patch makes several needlessly global struct scsi_dh_devlist's static.

---

 drivers/scsi/device_handler/scsi_dh_alua.c  |    2 +-
 drivers/scsi/device_handler/scsi_dh_emc.c   |    2 +-
 drivers/scsi/device_handler/scsi_dh_hp_sw.c |    2 +-
 drivers/scsi/device_handler/scsi_dh_rdac.c  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

ae6ee914615e415cc4b22ee1c0545bb088889b6a

drivers/scsi/device_handler/scsi_dh_alua.c +1 -1
index fcdd73f..994da56 100644
@@ -680,7 +680,7 @@ static int alua_prep_fn(struct scsi_device *sdev, struct request *req)
 
 }
 
-const struct scsi_dh_devlist alua_dev_list[] = {
+static const struct scsi_dh_devlist alua_dev_list[] = {
 	{"HP", "MSA VOLUME" },
 	{"HP", "HSV101" },
 	{"HP", "HSV111" },
drivers/scsi/device_handler/scsi_dh_emc.c +1 -1
index aa46b13..b9d23e9 100644
@@ -562,7 +562,7 @@ done:
 	return result;
 }
 
-const struct scsi_dh_devlist clariion_dev_list[] = {
+static const struct scsi_dh_devlist clariion_dev_list[] = {
 	{"DGC", "RAID"},
 	{"DGC", "DISK"},
 	{"DGC", "VRAID"},
drivers/scsi/device_handler/scsi_dh_hp_sw.c +1 -1
index 9c7a1f8..a6a4ef3 100644
@@ -282,7 +282,7 @@ static int hp_sw_activate(struct scsi_device *sdev)
 	return ret;
 }
 
-const struct scsi_dh_devlist hp_sw_dh_data_list[] = {
+static const struct scsi_dh_devlist hp_sw_dh_data_list[] = {
 	{"COMPAQ", "MSA1000 VOLUME"},
 	{"COMPAQ", "HSV110"},
 	{"HP", "HSV100"},
drivers/scsi/device_handler/scsi_dh_rdac.c +1 -1
index b093a50..e7c7b4e 100644
@@ -574,7 +574,7 @@ static int rdac_check_sense(struct scsi_device *sdev,
 	return SCSI_RETURN_NOT_HANDLED;
 }
 
-const struct scsi_dh_devlist rdac_dev_list[] = {
+static const struct scsi_dh_devlist rdac_dev_list[] = {
 	{"IBM", "1722"},
 	{"IBM", "1724"},
 	{"IBM", "1726"},
#1 lore raw
Quoted 6 lines · Chandra Seetharaman

This patch makes several needlessly global struct scsi_dh_devlist's static.

This is not a valid sign-off chain.

Was the patch originally done by Adrian? If so, where is the

From: Adrian Bunk <[email protected]>

at the top?

And since you're forwarding it, you should be signing off on it, not just acking it. Otherwise, the next person in the chain can't sign off on it and take it.

Linus