diff mbox

[2/2] i8259: kvm_* functions only defined when KVM_CAP_IRQCHIP devined

Message ID caf7c1f4c653bd07bbb5683f9210a59ebc3f69ba.1253364915.git.quintela@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Juan Quintela Sept. 19, 2009, 12:59 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/i8259.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/hw/i8259.c b/hw/i8259.c
index aaec6d8..3b98bab 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -464,18 +464,18 @@  static uint32_t elcr_ioport_read(void *opaque, uint32_t addr1)
     return s->elcr;
 }

+#ifdef KVM_CAP_IRQCHIP
 static void kvm_kernel_pic_save_to_user(const void *opaque);
 static int kvm_kernel_pic_load_from_user(void *opaque);
+#endif

 static const VMStateDescription vmstate_pic = {
     .name = "i8259",
     .version_id = 1,
 #ifdef KVM_CAP_IRQCHIP
-#ifdef TARGET_I386
     .pre_save = kvm_kernel_pic_save_to_user,
     .post_load = kvm_kernel_pic_load_from_user,
 #endif
-#endif
     .minimum_version_id = 1,
     .minimum_version_id_old = 1,
     .fields      = (VMStateField []) {