diff options
author | Avi Kivity <avi@qumranet.com> | 2007-06-03 11:27:40 +0300 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-06-03 11:27:40 +0300 |
commit | d83a2bc6c48a54792fc41d386c5a0512abbe02fa (patch) | |
tree | 058a110324f1ac88b831422d935d4596da188fa2 | |
parent | 3b7b2bf04a23f9c58900fd9bb391ba0df286a9dd (diff) |
kvm: external module: backward compatibility for <asm/cmpxchg.h>kvm-27
-rw-r--r-- | kvm/kernel/external-module-compat.h | 5 | ||||
-rw-r--r-- | kvm/kernel/include/asm/cmpxchg.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/kvm/kernel/external-module-compat.h b/kvm/kernel/external-module-compat.h index 66467c041..70a3c1e20 100644 --- a/kvm/kernel/external-module-compat.h +++ b/kvm/kernel/external-module-compat.h @@ -164,4 +164,7 @@ static inline struct super_block *kvmfs_get_sb( #endif - +/* + * For set_64bit(), which is in a new file asm/cmpxchg.h in newer kernels. + */ +#include <asm/system.h> diff --git a/kvm/kernel/include/asm/cmpxchg.h b/kvm/kernel/include/asm/cmpxchg.h new file mode 100644 index 000000000..4258b93b1 --- /dev/null +++ b/kvm/kernel/include/asm/cmpxchg.h @@ -0,0 +1,5 @@ +/* + * Empty file to satisfy #include <linux/cmpxchg.h> for older kernels. + */ + + |