Skip to content

Commit

Permalink
x86: apic_64.c fix sparse warnings about shadowed variables
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jul 8, 2008
1 parent 7223daf commit 431ee79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/x86/kernel/apic_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ static int __init detect_init_APIC(void)

void __init early_init_lapic_mapping(void)
{
unsigned long apic_phys;
unsigned long phys_addr;

/*
* If no local APIC can be found then go out
Expand All @@ -884,11 +884,11 @@ void __init early_init_lapic_mapping(void)
if (!smp_found_config)
return;

apic_phys = mp_lapic_addr;
phys_addr = mp_lapic_addr;

set_fixmap_nocache(FIX_APIC_BASE, apic_phys);
set_fixmap_nocache(FIX_APIC_BASE, phys_addr);
apic_printk(APIC_VERBOSE, "mapped APIC to %16lx (%16lx)\n",
APIC_BASE, apic_phys);
APIC_BASE, phys_addr);

/*
* Fetch the APIC ID of the BSP in case we have a
Expand Down

0 comments on commit 431ee79

Please sign in to comment.