projects/linux·commit d43a3312

x86: asm-x86/msr.h: pull in linux/types.h

d43a3312 · Mike Frysinger <[email protected]> · 2008-01-15 16:44:38 +01:00

Since the msr.h header uses types like __u32, it should pull in linux/types.h.

[ [email protected]: affects user-space that includes this header. We dont
  actually like user-space including raw kernel headers but it's a
  longstanding practice and it's easy for the kernel to be nice about
  this. ]

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Commit
d43a3312c77eb6bbf71fbadefb1683f6d197bf91
Parents
23be8c7d

Changes

1 files changed · +4 −0

FileStatusAddDelContent
include/asm-x86/msr.hmodified+4−0View file

include/asm-x86/msr.h

View file
diff --git a/include/asm-x86/msr.h b/include/asm-x86/msr.h
index 664a2fa..80b0270 100644
--- a/include/asm-x86/msr.h
+++ b/include/asm-x86/msr.h
@@ -3,6 +3,10 @@
#include <asm/msr-index.h>
+#ifndef __ASSEMBLY__
+# include <linux/types.h>
+#endif
+
#ifdef __i386__
#ifdef __KERNEL__