Commit 36f79fc3 authored by Jesse Barnes's avatar Jesse Barnes Committed by David Mosberger

[PATCH] ia64: fix current usage in sn2 code

For some reason, we had a structure field called 'current'.  This patch
fixes that.
parent 62251912
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <asm/sn/invent.h> #include <asm/sn/invent.h>
#include <asm/sn/hcl.h> #include <asm/sn/hcl.h>
#include <asm/sn/labelcl.h> #include <asm/sn/labelcl.h>
#include <asm//sn/sn_sal.h> #include <asm/sn/sn_sal.h>
#include <asm/sn/addrs.h> #include <asm/sn/addrs.h>
#include <asm/sn/ioconfig_bus.h> #include <asm/sn/ioconfig_bus.h>
...@@ -157,7 +157,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table) ...@@ -157,7 +157,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table)
char *name; char *name;
char *temp; char *temp;
char *next; char *next;
char *current; char *curr;
char *line; char *line;
struct ascii_moduleid *moduleid; struct ascii_moduleid *moduleid;
...@@ -166,10 +166,10 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table) ...@@ -166,10 +166,10 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table)
name = kmalloc(125, GFP_KERNEL); name = kmalloc(125, GFP_KERNEL);
memset(name, 0, 125); memset(name, 0, 125);
moduleid = table; moduleid = table;
current = file_contents; curr = file_contents;
while (nextline(current, &next, line)){ while (nextline(curr, &next, line)){
DBG("current 0x%lx next 0x%lx\n", current, next); DBG("curr 0x%lx next 0x%lx\n", curr, next);
temp = line; temp = line;
/* /*
...@@ -182,7 +182,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table) ...@@ -182,7 +182,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table)
break; break;
if (*temp == '\n') { if (*temp == '\n') {
current = next; curr = next;
memset(line, 0, 256); memset(line, 0, 256);
continue; continue;
} }
...@@ -191,7 +191,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table) ...@@ -191,7 +191,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table)
* Skip comment lines * Skip comment lines
*/ */
if (*temp == '#') { if (*temp == '#') {
current = next; curr = next;
memset(line, 0, 256); memset(line, 0, 256);
continue; continue;
} }
...@@ -204,7 +204,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table) ...@@ -204,7 +204,7 @@ build_moduleid_table(char *file_contents, struct ascii_moduleid *table)
DBG("Found %s\n", name); DBG("Found %s\n", name);
moduleid++; moduleid++;
free_entry++; free_entry++;
current = next; curr = next;
memset(line, 0, 256); memset(line, 0, 256);
} }
......
...@@ -544,7 +544,7 @@ sn_pci_fixup(int arg) ...@@ -544,7 +544,7 @@ sn_pci_fixup(int arg)
pci_read_config_byte(device_dev, PCI_INTERRUPT_PIN, pci_read_config_byte(device_dev, PCI_INTERRUPT_PIN,
(unsigned char *)&lines); (unsigned char *)&lines);
irqpdaindr->current = device_dev; irqpdaindr->curr = device_dev;
intr_handle = pciio_intr_alloc(device_vertex, NULL, lines, device_vertex); intr_handle = pciio_intr_alloc(device_vertex, NULL, lines, device_vertex);
irq = intr_handle->pi_irq; irq = intr_handle->pi_irq;
......
...@@ -174,8 +174,8 @@ do_intr_reserve_level(cpuid_t cpu, ...@@ -174,8 +174,8 @@ do_intr_reserve_level(cpuid_t cpu,
min_shared = 256; min_shared = 256;
for (i=IA64_SN2_FIRST_DEVICE_VECTOR; i < IA64_SN2_LAST_DEVICE_VECTOR; i++) { for (i=IA64_SN2_FIRST_DEVICE_VECTOR; i < IA64_SN2_LAST_DEVICE_VECTOR; i++) {
/* Share with the same device class */ /* Share with the same device class */
if (irqpdaindr->current->vendor == irqpdaindr->device_dev[i]->vendor && if (irqpdaindr->curr->vendor == irqpdaindr->device_dev[i]->vendor &&
irqpdaindr->current->device == irqpdaindr->device_dev[i]->device && irqpdaindr->curr->device == irqpdaindr->device_dev[i]->device &&
irqpdaindr->share_count[i] < min_shared) { irqpdaindr->share_count[i] < min_shared) {
min_shared = irqpdaindr->share_count[i]; min_shared = irqpdaindr->share_count[i];
bit = i; bit = i;
......
...@@ -87,7 +87,7 @@ struct irqpda_s { ...@@ -87,7 +87,7 @@ struct irqpda_s {
char irq_flags[NR_IRQS]; char irq_flags[NR_IRQS];
struct pci_dev *device_dev[NR_IRQS]; struct pci_dev *device_dev[NR_IRQS];
char share_count[NR_IRQS]; char share_count[NR_IRQS];
struct pci_dev *current; struct pci_dev *curr;
}; };
typedef struct irqpda_s irqpda_t; typedef struct irqpda_s irqpda_t;
......
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