Skip to contentSkip to conversation

target-s390x: Fix build for non-linux hosts

PATCH In review Stefan Weil 2 participants 2 messages May 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-s390x: Fix build for non-linux hosts

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 <[email protected]>
---
 target-s390x/helper.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
target-s390x/helper.c +0 -5
index c79af46..745d8c5 100644
@@ -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
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 7 lines · Stefan Weil

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 <[email protected]>

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

Alex