diff options
author | Xiantao Zhang <xiantao.zhang@intel.com> | 2008-10-24 11:47:57 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-10 10:36:08 +0200 |
commit | 1a88a0567ba34599134f1b0c18c85688b45a1455 (patch) | |
tree | bf32a7e96bb4a547866531db711e5c826b7da64e | |
parent | a605af55f79a1b28dc2ae574cb42a89c2949e439 (diff) |
KVM: ia64: Remove some macro definitions in asm-offsets.c.kvm-79rc1
Use kernel's corresponding macro instead.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/ia64/kvm/asm-offsets.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/ia64/kvm/asm-offsets.c b/arch/ia64/kvm/asm-offsets.c index 4e3dc13a619c..0c3564a7a033 100644 --- a/arch/ia64/kvm/asm-offsets.c +++ b/arch/ia64/kvm/asm-offsets.c @@ -24,19 +24,10 @@ #include <linux/autoconf.h> #include <linux/kvm_host.h> +#include <linux/kbuild.h> #include "vcpu.h" -#define task_struct kvm_vcpu - -#define DEFINE(sym, val) \ - asm volatile("\n->" #sym " (%0) " #val : : "i" (val)) - -#define BLANK() asm volatile("\n->" : :) - -#define OFFSET(_sym, _str, _mem) \ - DEFINE(_sym, offsetof(_str, _mem)); - void foo(void) { DEFINE(VMM_TASK_SIZE, sizeof(struct kvm_vcpu)); |