diff options
author | Eric Moore <eric.moore@lsi.com> | 2009-03-15 23:37:18 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-17 21:52:46 -0400 |
commit | ba33fadfabe88e838e73c76a6ff59546f5f6b92b (patch) | |
tree | 7419c722f12bd22a705c95c181f6e4bc07a4f9ba /drivers/scsi | |
parent | 70a9b8734660698eb91efb8947a9e691d40235e1 (diff) |
[SCSI] mpt2sas: make global symbols unique
The ioc_list global symbol is already used in 1st generation mpt
fusion drivers, so this patch makes it unique in the 2nd generation
driver. I've checked the entire sources, and I don't see any other
global system missing the mpt2sas_xxx prefix.
Signed-off-by: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.h | 6 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_ctl.c | 6 | ||||
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h index 11fc17f218c8..6945ff4d382e 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.h +++ b/drivers/scsi/mpt2sas/mpt2sas_base.h | |||
@@ -68,11 +68,11 @@ | |||
68 | #define MPT2SAS_DRIVER_NAME "mpt2sas" | 68 | #define MPT2SAS_DRIVER_NAME "mpt2sas" |
69 | #define MPT2SAS_AUTHOR "LSI Corporation <DL-MPTFusionLinux@lsi.com>" | 69 | #define MPT2SAS_AUTHOR "LSI Corporation <DL-MPTFusionLinux@lsi.com>" |
70 | #define MPT2SAS_DESCRIPTION "LSI MPT Fusion SAS 2.0 Device Driver" | 70 | #define MPT2SAS_DESCRIPTION "LSI MPT Fusion SAS 2.0 Device Driver" |
71 | #define MPT2SAS_DRIVER_VERSION "00.100.11.15" | 71 | #define MPT2SAS_DRIVER_VERSION "00.100.11.16" |
72 | #define MPT2SAS_MAJOR_VERSION 00 | 72 | #define MPT2SAS_MAJOR_VERSION 00 |
73 | #define MPT2SAS_MINOR_VERSION 100 | 73 | #define MPT2SAS_MINOR_VERSION 100 |
74 | #define MPT2SAS_BUILD_VERSION 11 | 74 | #define MPT2SAS_BUILD_VERSION 11 |
75 | #define MPT2SAS_RELEASE_VERSION 15 | 75 | #define MPT2SAS_RELEASE_VERSION 16 |
76 | 76 | ||
77 | /* | 77 | /* |
78 | * Set MPT2SAS_SG_DEPTH value based on user input. | 78 | * Set MPT2SAS_SG_DEPTH value based on user input. |
@@ -647,7 +647,7 @@ typedef void (*MPT_CALLBACK)(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 VF_ID, | |||
647 | 647 | ||
648 | 648 | ||
649 | /* base shared API */ | 649 | /* base shared API */ |
650 | extern struct list_head ioc_list; | 650 | extern struct list_head mpt2sas_ioc_list; |
651 | 651 | ||
652 | int mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc); | 652 | int mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc); |
653 | void mpt2sas_base_detach(struct MPT2SAS_ADAPTER *ioc); | 653 | void mpt2sas_base_detach(struct MPT2SAS_ADAPTER *ioc); |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c index 4fbe3f83319b..2d4f85c9d7a1 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c | |||
@@ -355,7 +355,7 @@ _ctl_verify_adapter(int ioc_number, struct MPT2SAS_ADAPTER **iocpp) | |||
355 | { | 355 | { |
356 | struct MPT2SAS_ADAPTER *ioc; | 356 | struct MPT2SAS_ADAPTER *ioc; |
357 | 357 | ||
358 | list_for_each_entry(ioc, &ioc_list, list) { | 358 | list_for_each_entry(ioc, &mpt2sas_ioc_list, list) { |
359 | if (ioc->id != ioc_number) | 359 | if (ioc->id != ioc_number) |
360 | continue; | 360 | continue; |
361 | *iocpp = ioc; | 361 | *iocpp = ioc; |
@@ -439,7 +439,7 @@ _ctl_poll(struct file *filep, poll_table *wait) | |||
439 | 439 | ||
440 | poll_wait(filep, &ctl_poll_wait, wait); | 440 | poll_wait(filep, &ctl_poll_wait, wait); |
441 | 441 | ||
442 | list_for_each_entry(ioc, &ioc_list, list) { | 442 | list_for_each_entry(ioc, &mpt2sas_ioc_list, list) { |
443 | if (ioc->aen_event_read_flag) | 443 | if (ioc->aen_event_read_flag) |
444 | return POLLIN | POLLRDNORM; | 444 | return POLLIN | POLLRDNORM; |
445 | } | 445 | } |
@@ -2497,7 +2497,7 @@ mpt2sas_ctl_exit(void) | |||
2497 | struct MPT2SAS_ADAPTER *ioc; | 2497 | struct MPT2SAS_ADAPTER *ioc; |
2498 | int i; | 2498 | int i; |
2499 | 2499 | ||
2500 | list_for_each_entry(ioc, &ioc_list, list) { | 2500 | list_for_each_entry(ioc, &mpt2sas_ioc_list, list) { |
2501 | 2501 | ||
2502 | /* free memory associated to diag buffers */ | 2502 | /* free memory associated to diag buffers */ |
2503 | for (i = 0; i < MPI2_DIAG_BUF_TYPE_COUNT; i++) { | 2503 | for (i = 0; i < MPI2_DIAG_BUF_TYPE_COUNT; i++) { |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index 50865a8e1a4f..0c463c483c02 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -68,10 +68,9 @@ static void _scsih_expander_node_remove(struct MPT2SAS_ADAPTER *ioc, | |||
68 | static void _firmware_event_work(struct work_struct *work); | 68 | static void _firmware_event_work(struct work_struct *work); |
69 | 69 | ||
70 | /* global parameters */ | 70 | /* global parameters */ |
71 | LIST_HEAD(ioc_list); | 71 | LIST_HEAD(mpt2sas_ioc_list); |
72 | 72 | ||
73 | /* local parameters */ | 73 | /* local parameters */ |
74 | static u32 logging_level; | ||
75 | static u8 scsi_io_cb_idx = -1; | 74 | static u8 scsi_io_cb_idx = -1; |
76 | static u8 tm_cb_idx = -1; | 75 | static u8 tm_cb_idx = -1; |
77 | static u8 ctl_cb_idx = -1; | 76 | static u8 ctl_cb_idx = -1; |
@@ -81,6 +80,7 @@ static u8 config_cb_idx = -1; | |||
81 | static int mpt_ids; | 80 | static int mpt_ids; |
82 | 81 | ||
83 | /* command line options */ | 82 | /* command line options */ |
83 | static u32 logging_level; | ||
84 | MODULE_PARM_DESC(logging_level, " bits for enabling additional logging info " | 84 | MODULE_PARM_DESC(logging_level, " bits for enabling additional logging info " |
85 | "(default=0)"); | 85 | "(default=0)"); |
86 | 86 | ||
@@ -211,7 +211,7 @@ scsih_set_debug_level(const char *val, struct kernel_param *kp) | |||
211 | return ret; | 211 | return ret; |
212 | 212 | ||
213 | printk(KERN_INFO "setting logging_level(0x%08x)\n", logging_level); | 213 | printk(KERN_INFO "setting logging_level(0x%08x)\n", logging_level); |
214 | list_for_each_entry(ioc, &ioc_list, list) | 214 | list_for_each_entry(ioc, &mpt2sas_ioc_list, list) |
215 | ioc->logging_level = logging_level; | 215 | ioc->logging_level = logging_level; |
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
@@ -5464,7 +5464,7 @@ scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
5464 | ioc = shost_priv(shost); | 5464 | ioc = shost_priv(shost); |
5465 | memset(ioc, 0, sizeof(struct MPT2SAS_ADAPTER)); | 5465 | memset(ioc, 0, sizeof(struct MPT2SAS_ADAPTER)); |
5466 | INIT_LIST_HEAD(&ioc->list); | 5466 | INIT_LIST_HEAD(&ioc->list); |
5467 | list_add_tail(&ioc->list, &ioc_list); | 5467 | list_add_tail(&ioc->list, &mpt2sas_ioc_list); |
5468 | ioc->shost = shost; | 5468 | ioc->shost = shost; |
5469 | ioc->id = mpt_ids++; | 5469 | ioc->id = mpt_ids++; |
5470 | sprintf(ioc->name, "%s%d", MPT2SAS_DRIVER_NAME, ioc->id); | 5470 | sprintf(ioc->name, "%s%d", MPT2SAS_DRIVER_NAME, ioc->id); |