aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
diff options
context:
space:
mode:
authorEric Moore <eric.moore@lsi.com>2009-03-15 23:37:18 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-17 21:52:46 -0400
commitba33fadfabe88e838e73c76a6ff59546f5f6b92b (patch)
tree7419c722f12bd22a705c95c181f6e4bc07a4f9ba /drivers/scsi/mpt2sas/mpt2sas_scsih.c
parent70a9b8734660698eb91efb8947a9e691d40235e1 (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/mpt2sas/mpt2sas_scsih.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c8
1 files changed, 4 insertions, 4 deletions
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,
68static void _firmware_event_work(struct work_struct *work); 68static void _firmware_event_work(struct work_struct *work);
69 69
70/* global parameters */ 70/* global parameters */
71LIST_HEAD(ioc_list); 71LIST_HEAD(mpt2sas_ioc_list);
72 72
73/* local parameters */ 73/* local parameters */
74static u32 logging_level;
75static u8 scsi_io_cb_idx = -1; 74static u8 scsi_io_cb_idx = -1;
76static u8 tm_cb_idx = -1; 75static u8 tm_cb_idx = -1;
77static u8 ctl_cb_idx = -1; 76static u8 ctl_cb_idx = -1;
@@ -81,6 +80,7 @@ static u8 config_cb_idx = -1;
81static int mpt_ids; 80static int mpt_ids;
82 81
83/* command line options */ 82/* command line options */
83static u32 logging_level;
84MODULE_PARM_DESC(logging_level, " bits for enabling additional logging info " 84MODULE_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);