Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d34c0895 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86: k8topology fix shadow variable



sparse mutters:
arch/x86/mm/k8topology_64.c:108:7: warning: symbol 'nodeid' shadows an earlier one

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0eafe234
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);