Attached. Thanks! >From 0175b35b388b3d1a8df82bdab200a8d8d00bab3d Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <xiantao.zhang@xxxxxxxxx> 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 <xiantao.zhang@xxxxxxxxx> --- 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:avi@xxxxxxxxxx] Sent: Sunday, November 16, 2008 4:23 PM To: Zhang, Xiantao Cc: kvm@xxxxxxxxxxxxxxx; kvm-ia64@xxxxxxxxxxxxxxx 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
Attachment:
0001-KVM-External-Module-Remove-the-inclusion-for-linu.patch
Description: 0001-KVM-External-Module-Remove-the-inclusion-for-linu.patch