]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
x86: k8topology fix shadow variable
authorThomas Gleixner <tglx@linutronix.de>
Mon, 12 May 2008 13:43:35 +0000 (15:43 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 06:58:26 +0000 (08:58 +0200)
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>
arch/x86/mm/k8topology_64.c

index 48471199887d34f25bdda72a313b21e9ce52f464..36c6c4a91353e3309f7f9a1f9ba69e7995489161 100644 (file)
@@ -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;
@@ -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);