Skip to content

Commit

Permalink
x86: k8topology fix shadow variable
Browse files Browse the repository at this point in the history
sparse mutters:
arch/x86/mm/k8topology_64.c:108:7: warning: symbol 'nodeid' shadows an earlier one

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Thomas Gleixner committed May 25, 2008
1 parent 0eafe23 commit d34c089
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/x86/mm/k8topology_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
{
unsigned long prevbase;
struct bootnode nodes[8];
int nodeid, i, nb;
int i, nb;
unsigned char nodeids[8];
int found = 0;
u32 reg;
u32 nodeid, reg;
unsigned numnodes;
unsigned cores;
unsigned bits;
Expand All @@ -106,7 +106,6 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
prevbase = 0;
for (i = 0; i < 8; i++) {
unsigned long base, limit;
u32 nodeid;

base = read_pci_config(0, nb, 1, 0x40 + i*8);
limit = read_pci_config(0, nb, 1, 0x44 + i*8);
Expand Down

0 comments on commit d34c089

Please sign in to comment.