RE: [PATCH] KVM: Qemu: Sync compiler.h from kernel source when do

"Zhang, Xiantao" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <706158FABBBA044BAD4FE898A02E4BC219AD63A7@pdsmsx503.ccr.corp.intel.com>
Attached. Thanks!

From 0175b35b388b3d1a8df82bdab200a8d8d00bab3d Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Mon, 17 Nov 2008 09:58:53 +0800
Subject: [PATCH] KVM: External Module: Remove the inclusion for <linux/compiler.h>

Some OSes lack of <linux/compiler.h> for applications,
so removes it from kernel header files.
Signed-off-by: Xiantao Zhang <[email protected]>
---
 kernel/ia64/hack-module.awk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/ia64/hack-module.awk b/kernel/ia64/hack-module.awk
index e60e194..38db00f 100644
--- a/kernel/ia64/hack-module.awk
+++ b/kernel/ia64/hack-module.awk
@@ -12,4 +12,6 @@ BEGIN { split("INIT_WORK on_each_cpu smp_call_function " \
     }
 }
 
+/#include <linux\/compiler.h>/ { $0 = "" }
+
 { print }
-- 
1.6.0


-----Original Message-----
From: Avi Kivity [mailto:[email protected]] 
Sent: Sunday, November 16, 2008 4:23 PM
To: Zhang, Xiantao
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] KVM: Qemu: Sync compiler.h from kernel source when do make sync.

Zhang, Xiantao wrote:
> I am not sure the inclusion for comiplier.h in <linux/kvm.h> is unnecessry when building userspace or external module.  If it is useless, maybe we can remove it in hach. Could you confirm it ?
>   

I think that the kernel's 'make headers-install' process strips out 
compiler.h, so it should be safe.

-- 
error compiling committee.c: too many arguments to function
0001-KVM-External-Module-Remove-the-inclusion-for-linu.patch (application/octet-stream, 809 B)
From 0175b35b388b3d1a8df82bdab200a8d8d00bab3d Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Mon, 17 Nov 2008 09:58:53 +0800
Subject: [PATCH] KVM: External Module: Remove the inclusion for <linux/compiler.h>

Some OSes lack of <linux/compiler.h> for applications,
so removes it from kernel header files.
Signed-off-by: Xiantao Zhang <[email protected]>
---
 kernel/ia64/hack-module.awk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/ia64/hack-module.awk b/kernel/ia64/hack-module.awk
index e60e194..38db00f 100644
--- a/kernel/ia64/hack-module.awk
+++ b/kernel/ia64/hack-module.awk
@@ -12,4 +12,6 @@ BEGIN { split("INIT_WORK on_each_cpu smp_call_function " \
     }
 }
 
+/#include <linux\/compiler.h>/ { $0 = "" }
+
 { print }
-- 
1.6.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.