git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: fix broken irq migration logic while cleaning up multiple vectors
[safe/jmp/linux-2.6]
/
drivers
/
edac
/
edac_pci.c
diff --git
a/drivers/edac/edac_pci.c
b/drivers/edac/edac_pci.c
index
5dee9f5
..
5d3c808
100644
(file)
--- a/
drivers/edac/edac_pci.c
+++ b/
drivers/edac/edac_pci.c
@@
-29,7
+29,7
@@
#include "edac_module.h"
static DEFINE_MUTEX(edac_pci_ctls_mutex);
#include "edac_module.h"
static DEFINE_MUTEX(edac_pci_ctls_mutex);
-static
struct list_head edac_pci_list = LIST_HEAD_INIT
(edac_pci_list);
+static
LIST_HEAD
(edac_pci_list);
/*
* edac_pci_alloc_ctl_info
/*
* edac_pci_alloc_ctl_info
@@
-73,7
+73,7
@@
EXPORT_SYMBOL_GPL(edac_pci_alloc_ctl_info);
*
* Last action on the pci control structure.
*
*
* Last action on the pci control structure.
*
- * call the remove sysfs informaton, which will unregister
+ * call the remove sysfs informat
i
on, which will unregister
* this control struct's kobj. When that kobj's ref count
* goes to zero, its release function will be call and then
* kfree() the memory.
* this control struct's kobj. When that kobj's ref count
* goes to zero, its release function will be call and then
* kfree() the memory.
@@
-150,7
+150,7
@@
static int add_edac_pci_to_global_list(struct edac_pci_ctl_info *pci)
fail0:
edac_printk(KERN_WARNING, EDAC_PCI,
"%s (%s) %s %s already assigned %d\n",
fail0:
edac_printk(KERN_WARNING, EDAC_PCI,
"%s (%s) %s %s already assigned %d\n",
-
rover->dev->bus_id,
dev_name(rover),
+
dev_name(rover->dev), edac_
dev_name(rover),
rover->mod_name, rover->ctl_name, rover->pci_idx);
return 1;
rover->mod_name, rover->ctl_name, rover->pci_idx);
return 1;
@@
-189,6
+189,9
@@
static void del_edac_pci_from_global_list(struct edac_pci_ctl_info *pci)
wait_for_completion(&pci->complete);
}
wait_for_completion(&pci->complete);
}
+#if 0
+/* Older code, but might use in the future */
+
/*
* edac_pci_find()
* Search for an edac_pci_ctl_info structure whose index is 'idx'
/*
* edac_pci_find()
* Search for an edac_pci_ctl_info structure whose index is 'idx'
@@
-219,6
+222,7
@@
struct edac_pci_ctl_info *edac_pci_find(int idx)
return NULL;
}
EXPORT_SYMBOL_GPL(edac_pci_find);
return NULL;
}
EXPORT_SYMBOL_GPL(edac_pci_find);
+#endif
/*
* edac_pci_workq_function()
/*
* edac_pci_workq_function()
@@
-246,7
+250,7
@@
static void edac_pci_workq_function(struct work_struct *work_req)
/* if we are on a one second period, then use round */
msec = edac_pci_get_poll_msec();
if (msec == 1000)
/* if we are on a one second period, then use round */
msec = edac_pci_get_poll_msec();
if (msec == 1000)
- delay = round_jiffies(msecs_to_jiffies(msec));
+ delay = round_jiffies
_relative
(msecs_to_jiffies(msec));
else
delay = msecs_to_jiffies(msec);
else
delay = msecs_to_jiffies(msec);
@@
-356,7
+360,7
@@
int edac_pci_add_device(struct edac_pci_ctl_info *pci, int edac_idx)
" DEV '%s' (%s)\n",
pci->mod_name,
pci->ctl_name,
" DEV '%s' (%s)\n",
pci->mod_name,
pci->ctl_name,
- dev_name(pci), edac_op_state_to_string(pci->op_state));
+
edac_
dev_name(pci), edac_op_state_to_string(pci->op_state));
mutex_unlock(&edac_pci_ctls_mutex);
return 0;
mutex_unlock(&edac_pci_ctls_mutex);
return 0;
@@
-411,7
+415,7
@@
struct edac_pci_ctl_info *edac_pci_del_device(struct device *dev)
edac_printk(KERN_INFO, EDAC_PCI,
"Removed device %d for %s %s: DEV %s\n",
edac_printk(KERN_INFO, EDAC_PCI,
"Removed device %d for %s %s: DEV %s\n",
- pci->pci_idx, pci->mod_name, pci->ctl_name, dev_name(pci));
+ pci->pci_idx, pci->mod_name, pci->ctl_name,
edac_
dev_name(pci));
return pci;
}
return pci;
}
@@
-422,7
+426,7
@@
EXPORT_SYMBOL_GPL(edac_pci_del_device);
*
* a Generic parity check API
*/
*
* a Generic parity check API
*/
-void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
+
static
void edac_pci_generic_check(struct edac_pci_ctl_info *pci)
{
debugf4("%s()\n", __func__);
edac_pci_do_parity_check();
{
debugf4("%s()\n", __func__);
edac_pci_do_parity_check();