Patchwork [6/6] Avoid compilation warning regarding kvm under darwin

login
register
mail settings
Submitter Alexandre Raymond
Date May 27, 2011, 5:22 p.m.
Message ID <1306516951-31105-7-git-send-email-cerbere@gmail.com>
Download mbox | patch
Permalink /patch/97727/
State New
Headers show

Comments

Alexandre Raymond - May 27, 2011, 5:22 p.m.
----8<----
qemu/target-s390x/helper.c:32:23: warning: linux/kvm.h: No such file or director
----8<----

kvm.h, which is included right after this line, already includes linux/kvm.h
with the proper CONFIG_KVM guard. Remove redundant include.

Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
---
 target-s390x/helper.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Stefan Weil - May 27, 2011, 5:39 p.m.
Am 27.05.2011 19:22, schrieb Alexandre Raymond:
> ----8<----
> qemu/target-s390x/helper.c:32:23: warning: linux/kvm.h: No such file 
> or director
> ----8<----
>
> kvm.h, which is included right after this line, already includes 
> linux/kvm.h
> with the proper CONFIG_KVM guard. Remove redundant include.
>
> Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
> ---
> target-s390x/helper.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/target-s390x/helper.c b/target-s390x/helper.c
> index c79af46..5dc42f1 100644
> --- a/target-s390x/helper.c
> +++ b/target-s390x/helper.c
> @@ -29,7 +29,6 @@
> #include "qemu-timer.h"
>
> #if !defined(CONFIG_USER_ONLY)
> -#include <linux/kvm.h>
> #include "kvm.h"
> #endif

See http://patchwork.ozlabs.org/patch/97191/.

Regards,
Stefan W.

Patch

diff --git a/target-s390x/helper.c b/target-s390x/helper.c
index c79af46..5dc42f1 100644
--- a/target-s390x/helper.c
+++ b/target-s390x/helper.c
@@ -29,7 +29,6 @@ 
 #include "qemu-timer.h"
 
 #if !defined(CONFIG_USER_ONLY)
-#include <linux/kvm.h>
 #include "kvm.h"
 #endif