Skip to contentSkip to conversation

x86: msr.h linux/types is only required for __KERNEL__

PATCH In review Jaswinder Singh Rajput 1 participant 2 messages Jun 17, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: msr.h linux/types is only required for __KERNEL__

<linux/types.h> is only required for __KERNEL__ as whole file is covered with it

Also fixed some spacing issues for usr/include/asm-x86/msr.h

---
 arch/x86/include/asm/msr.h |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
arch/x86/include/asm/msr.h +1 -6
index 2260376..48ad9d2 100644
@@ -3,13 +3,10 @@
 
 #include <asm/msr-index.h>
 
-#ifndef __ASSEMBLY__
-# include <linux/types.h>
-#endif
-
 #ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 
+#include <linux/types.h>
 #include <asm/asm.h>
 #include <asm/errno.h>
 #include <asm/cpumask.h>
@@ -264,6 +261,4 @@ static inline int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h)
 #endif  /* CONFIG_SMP */
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL__ */
-
-
 #endif /* _ASM_X86_MSR_H */
Signature · 1 line
1.6.0.6
#1 lore raw

[tip:x86/urgent] x86: msr.h linux/types.h is only required for __KERNEL__

Commit-ID:  8fa62ad9d24e24707164ac7a97cbe59fe78a8591
Gitweb:     http://git.kernel.org/tip/8fa62ad9d24e24707164ac7a97cbe59fe78a8591
Author:     Jaswinder Singh Rajput <[email protected]>
AuthorDate: Wed, 17 Jun 2009 14:11:10 +0530
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 17 Jun 2009 18:56:01 +0200

x86: msr.h linux/types.h is only required for __KERNEL__

<linux/types.h> is only required for __KERNEL__ as whole file is covered with it

Also fixed some spacing issues for usr/include/asm-x86/msr.h

LKML-Reference: <[email protected]>

---
 arch/x86/include/asm/msr.h |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
arch/x86/include/asm/msr.h +1 -6
index 2260376..48ad9d2 100644
@@ -3,13 +3,10 @@
 
 #include <asm/msr-index.h>
 
-#ifndef __ASSEMBLY__
-# include <linux/types.h>
-#endif
-
 #ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 
+#include <linux/types.h>
 #include <asm/asm.h>
 #include <asm/errno.h>
 #include <asm/cpumask.h>
@@ -264,6 +261,4 @@ static inline int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h)
 #endif  /* CONFIG_SMP */
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL__ */
-
-
 #endif /* _ASM_X86_MSR_H */