Re: [patch] asm-x86/msr.h: pull in linux/types.h

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: <tglx@...>, <mingo@...>, <hpa@...>, Andi Kleen <andi@...>, LKML <linux-kernel@...>
Date: Wednesday, January 2, 2008 - 9:37 am

On Wednesday 02 January 2008, Ingo Molnar wrote:

sorry, forgot about __ASSEMBLY__ protection.
=2D--
Since the msr.h header uses types like __u32, it should pull in linux/types=
=2Eh.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
=2D--
diff --git a/include/asm-x86/msr.h b/include/asm-x86/msr.h
index 664a2fa..80b0270 100644
=2D-- a/include/asm-x86/msr.h
+++ b/include/asm-x86/msr.h
@@ -3,6 +3,10 @@
=20
 #include <asm/msr-index.h>
=20
+#ifndef __ASSEMBLY__
+# include <linux/types.h>
+#endif
+
 #ifdef __i386__
=20
 #ifdef __KERNEL__
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] asm-x86/msr.h: pull in linux/types.h, Mike Frysinger, (Tue Jan 1, 9:08 pm)
Re: [patch] asm-x86/msr.h: pull in linux/types.h, Ingo Molnar, (Wed Jan 2, 7:48 am)
Re: [patch] asm-x86/msr.h: pull in linux/types.h, Mike Frysinger, (Wed Jan 2, 9:37 am)
Re: [patch] asm-x86/msr.h: pull in linux/types.h, Ingo Molnar, (Wed Jan 2, 12:07 pm)