diff mbox

target-s390x: Fix build for non-linux hosts

Message ID 1306258971-20679-1-git-send-email-weil@mail.berlios.de
State Accepted
Headers show

Commit Message

Stefan Weil May 24, 2011, 5:42 p.m. UTC
linux/kvm.h is not always available for compilation.

Neither linux/kvm.h nor kvm.h are needed, so remove both
which also fixes the build problem for non-linux hosts.

Cc: Alexander Graf <agraf@suse.de>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 target-s390x/helper.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

Comments

Alexander Graf May 24, 2011, 5:55 p.m. UTC | #1
On 24.05.2011, at 19:42, Stefan Weil wrote:

> linux/kvm.h is not always available for compilation.
> 
> Neither linux/kvm.h nor kvm.h are needed, so remove both
> which also fixes the build problem for non-linux hosts.
> 
> Cc: Alexander Graf <agraf@suse.de>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>

Thanks :). Applied to the s390-next tree.


Alex
diff mbox

Patch

diff --git a/target-s390x/helper.c b/target-s390x/helper.c
index c79af46..745d8c5 100644
--- a/target-s390x/helper.c
+++ b/target-s390x/helper.c
@@ -28,11 +28,6 @@ 
 #include "qemu-common.h"
 #include "qemu-timer.h"
 
-#if !defined(CONFIG_USER_ONLY)
-#include <linux/kvm.h>
-#include "kvm.h"
-#endif
-
 //#define DEBUG_S390
 //#define DEBUG_S390_PTE
 //#define DEBUG_S390_STDOUT