Skip to contentSkip to conversation

qemu-kvm: fix compiler warning

PATCH In review Michael S. Tsirkin 2 participants 2 messages Apr 27, 2009 – May 4, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-kvm: fix compiler warning

kvm-common.h:25:7: warning: "__ia64__" is not defined

---
 kvm/libkvm/kvm-common.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kvm/libkvm/kvm-common.h +1 -1
index 96361e8..591fb53 100644
@@ -22,7 +22,7 @@
 #define KVM_MAX_NUM_MEM_REGIONS 1u
 #define MAX_VCPUS 64
 #define LIBKVM_S390_ORIGIN (0UL)
-#elif __ia64__
+#elif defined(__ia64__)
 #define KVM_MAX_NUM_MEM_REGIONS 32u
 #define MAX_VCPUS 256
 #else
Signature · 1 line
1.6.0.6
#1 lore raw
Quoted 2 lines · Michael S. Tsirkin

kvm-common.h:25:7: warning: "__ia64__" is not defined

Went in by another route.

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.