public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c.
@ 2008-11-10  6:08 Zhang, Xiantao
  2008-11-10  8:36 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2008-11-10  6:08 UTC (permalink / raw)
  To: Avi Kivity, kvm-ia64@vger.kernel.org; +Cc: kvm@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

>From 74da27927ac15996a9a59be3c9b7479021360015 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Fri, 24 Oct 2008 11:47:57 +0800
Subject: [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c.

Use kernel's corresponding Macro instead.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 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 4e3dc13..0c3564a 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));
-- 
1.6.0

[-- Attachment #2: 0001-KVM-ia64-Remove-some-Macro-definitions-for-asm-offs.patch --]
[-- Type: application/octet-stream, Size: 1054 bytes --]

From 74da27927ac15996a9a59be3c9b7479021360015 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Fri, 24 Oct 2008 11:47:57 +0800
Subject: [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c.

Use kernel's corresponding Macro instead.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
 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 4e3dc13..0c3564a 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));
-- 
1.6.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c.
  2008-11-10  6:08 [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c Zhang, Xiantao
@ 2008-11-10  8:36 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-11-10  8:36 UTC (permalink / raw)
  To: Zhang, Xiantao; +Cc: kvm-ia64@vger.kernel.org, kvm@vger.kernel.org

Zhang, Xiantao wrote:
> From 74da27927ac15996a9a59be3c9b7479021360015 Mon Sep 17 00:00:00 2001
> From: Xiantao Zhang <xiantao.zhang@intel.com>
> Date: Fri, 24 Oct 2008 11:47:57 +0800
> Subject: [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c.
>
> Use kernel's corresponding Macro instead.
>   

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-10  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-10  6:08 [PATCH] KVM:ia64: Remove some Macro definitions for asm-offsets.c Zhang, Xiantao
2008-11-10  8:36 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox