diff options
author | Avi Kivity <avi@qumranet.com> | 2008-05-06 13:51:20 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-06 13:51:20 +0300 |
commit | 1e95b0057243f15c110474ece843c237c5755239 (patch) | |
tree | f4b9d7d4b9c968462f309ed332edabd2324433f7 /kernel | |
parent | 4e1df64bcc98365e047e241a88a4d255c07a625c (diff) |
kvm: external module: fix div64_u64 compatibility
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/external-module-compat.c | 4 | ||||
-rw-r--r-- | kernel/external-module-compat.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/external-module-compat.c b/kernel/external-module-compat.c index 28eabef0..5b199408 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 27314ebf..21546b40 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 |