Skip to contentSkip to conversation

kvm: fix external module on mtrr_var_range

PATCH Applied Sheng Yang 2 participants 2 messages Nov 5, 2008 KVM

lore
Share & tools
lore

Sheng Yang

author
#0 lore raw

PATCH 1/1 kvm: fix external module on mtrr_var_range

---
 kernel/x86/external-module-compat.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/x86/external-module-compat.h +2 -2
index 882f5d1..b5e11e2 100644
@@ -335,6 +335,8 @@ struct kvm_desc_ptr {
 #define FEATURE_CONTROL_VMXON_ENABLED	(1<<2)
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
+
 struct mtrr_var_range {
 	u32 base_lo;
 	u32 base_hi;
@@ -342,8 +344,6 @@ struct mtrr_var_range {
 	u32 mask_hi;
 };
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
-
 /* In the Intel processor's MTRR interface, the MTRR type is always held in
    an 8 bit field: */
 typedef u8 mtrr_type;
Signature · 1 line
1.5.4.5