Commit 549dc914 authored by Keith Owens's avatar Keith Owens Committed by David Mosberger

[PATCH] ia64: Rename SN "modules" variable to "sn_modules".

SN code has a "modules" variable that conflicts with a variable of the
same name in kernel/module.c.  This conflict breaks lcrash for ia64.
Rename "modules" to "sn_modules".
Signed-off-by: default avatarKeith Owens <kaos@sgi.com>
Signed-off-by: default avatarDavid Mosberger <davidm@hpl.hp.com>
parent 972d8c37
......@@ -741,7 +741,7 @@ pci_bus_to_hcl_cvlink(void)
/* Is this PCI bus associated with this moduleid? */
moduleid = NODE_MODULEID(
nasid_to_cnodeid(pcibr_soft->bs_nasid));
if (modules[i]->id == moduleid) {
if (sn_modules[i]->id == moduleid) {
struct pcibr_list_s *new_element;
new_element = kmalloc(sizeof (struct pcibr_soft_s), GFP_KERNEL);
......@@ -781,7 +781,7 @@ pci_bus_to_hcl_cvlink(void)
/*
* We now have a list of all the pci bridges associated with
* the module_id, modules[i]. Call pci_bus_map_create() for
* the module_id, sn_modules[i]. Call pci_bus_map_create() for
* each pci bridge
*/
softlistp = first_in_list;
......
......@@ -527,7 +527,7 @@ klhwg_add_all_modules(vertex_hdl_t hwgraph_root)
/* Use module as module vertex fastinfo */
memset(buffer, 0, 16);
format_module_id(buffer, modules[cm]->id, MODULE_FORMAT_BRIEF);
format_module_id(buffer, sn_modules[cm]->id, MODULE_FORMAT_BRIEF);
sprintf(name, EDGE_LBL_MODULE "/%s", buffer);
rc = hwgraph_path_add(hwgraph_root, name, &module_vhdl);
......@@ -535,7 +535,7 @@ klhwg_add_all_modules(vertex_hdl_t hwgraph_root)
rc = rc;
HWGRAPH_DEBUG(__FILE__, __FUNCTION__, __LINE__, module_vhdl, NULL, "Created module path.\n");
hwgraph_fastinfo_set(module_vhdl, (arbitrary_info_t) modules[cm]);
hwgraph_fastinfo_set(module_vhdl, (arbitrary_info_t) sn_modules[cm]);
/* Add system controller */
sprintf(name,
......
......@@ -33,7 +33,7 @@
#define DPRINTF(x...)
#endif
module_t *modules[MODULE_MAX];
module_t *sn_modules[MODULE_MAX];
int nummodules;
#define SN00_SERIAL_FUDGE 0x3b1af409d513c2
......@@ -59,9 +59,9 @@ module_lookup(moduleid_t id)
int i;
for (i = 0; i < nummodules; i++)
if (modules[i]->id == id) {
DPRINTF("module_lookup: found m=0x%p\n", modules[i]);
return modules[i];
if (sn_modules[i]->id == id) {
DPRINTF("module_lookup: found m=0x%p\n", sn_modules[i]);
return sn_modules[i];
}
return NULL;
......@@ -104,10 +104,10 @@ module_add_node(geoid_t geoid, cnodeid_t cnodeid)
/* Insert in sorted order by module number */
for (i = nummodules; i > 0 && modules[i - 1]->id > moduleid; i--)
modules[i] = modules[i - 1];
for (i = nummodules; i > 0 && sn_modules[i - 1]->id > moduleid; i--)
sn_modules[i] = sn_modules[i - 1];
modules[i] = m;
sn_modules[i] = m;
nummodules++;
}
......
......@@ -180,7 +180,7 @@ struct module_s {
};
/* module.c */
extern module_t *modules[MODULE_MAX]; /* Indexed by cmoduleid_t */
extern module_t *sn_modules[MODULE_MAX]; /* Indexed by cmoduleid_t */
extern int nummodules;
extern module_t *module_lookup(moduleid_t id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment