From: Avi Kivity <[EMAIL PROTECTED]>

Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/kernel/external-module-compat.c b/kernel/external-module-compat.c
index 28eabef..5b19940 100644
--- a/kernel/external-module-compat.c
+++ b/kernel/external-module-compat.c
@@ -80,8 +80,8 @@ int kvm_smp_call_function_single(int cpu, void (*func)(void 
*info),
 
 #endif
 
-/* div64_64 is fairly new */
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,21)
+/* div64_u64 is fairly new */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
 
 #ifndef CONFIG_64BIT
 
diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h
index 27314eb..21546b4 100644
--- a/kernel/external-module-compat.h
+++ b/kernel/external-module-compat.h
@@ -326,7 +326,7 @@ static inline void preempt_notifier_sys_exit(void) {}
 #endif
 
 /* div64_u64 is fairly new */
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,26)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
 
 #define div64_u64 kvm_div64_u64
 

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to