[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1011082114360.2900@localhost6.localdomain6>
Date: Mon, 8 Nov 2010 21:21:05 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Andi Kleen <andi@...stfloor.org>
cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>, x86@...nel.org
Subject: Re: [PATCH] x86: fix apic.h unused but set warnings
On Sun, 7 Nov 2010, Andi Kleen wrote:
> static inline u32 native_apic_msr_read(u32 reg)
> {
> - u32 low, high;
> + u32 low;
>
> if (reg == APIC_DFR)
> return -1;
>
> - rdmsr(APIC_BASE_MSR + (reg >> 4), low, high);
> + rdmsrl(APIC_BASE_MSR + (reg >> 4), low);
> return low;
> }
>
> @@ -181,12 +181,12 @@ extern void enable_x2apic(void);
> extern void x2apic_icr_write(u32 low, u32 id);
> static inline int x2apic_enabled(void)
> {
> - int msr, msr2;
> + int msr;
Please make this an u32 while at it.
Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists