Skip to content

Commit

Permalink
KVM: ia64: Remove some macro definitions in asm-offsets.c.
Browse files Browse the repository at this point in the history
Use kernel's corresponding macro instead.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Xiantao Zhang authored and Avi Kivity committed Dec 31, 2008
1 parent 74ef740 commit 30ed5bb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions arch/ia64/kvm/asm-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 30ed5bb

Please sign in to comment.