Re: [PATCH -tip] kvm_tools: fix build fail

From: Sasha Levin
Date: Thu Dec 08 2011 - 04:00:34 EST


Hi Lai,

This was fixed in the KVM tools tree 2 days ago, but not pulled into
-tip yet.

Thanks!

On Thu, 2011-12-08 at 16:52 +0800, Lai Jiangshan wrote:
> Commit e5fd47bfab2df0c2184cc0bf4245d8e1bb7724fb in -tip tree adds a
> "bool set_pm_idle_to_default(void);" to system.h which causes kvm_tool build fail:
>
> In file included from include/kvm/barrier.h:13:0,
> from virtio/core.c:5:
> ../../arch/x86/include/asm/system.h:404:6: error: expected ʽ=ʼ, ʽ,ʼ, ʽ;ʼ, ʽasmʼ or ʽ__attribute__ʼ before ʽset_pm_idle_to_defaultʼ
>
> Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>
> ---
> diff --git a/tools/kvm/include/kvm/barrier.h b/tools/kvm/include/kvm/barrier.h
> index c11a239..480276f 100644
> --- a/tools/kvm/include/kvm/barrier.h
> +++ b/tools/kvm/include/kvm/barrier.h
> @@ -7,6 +7,7 @@
> * Provide the dependencies here - we can drop these wrappers once
> * the header is fixed upstream:
> */
> +#include <stdbool.h>
> #include <linux/stringify.h>
> #include <linux/bitops.h>
> #include <asm/alternative.h>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--

Sasha.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/