Besides cleanliness, targets other than pc want to use virtio-balloon so we
need to have to define it somewhere other than pc.h
Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]>
diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c
index ee38326..92a8615 100644
--- a/qemu/hw/pc.c
+++ b/qemu/hw/pc.c
@@ -35,6 +35,7 @@
#include "fw_cfg.h"
#include "device-assignment.h"
#include "virtio-blk.h"
+#include "virtio-balloon.h"
#include "qemu-kvm.h"
diff --git a/qemu/hw/pc.h b/qemu/hw/pc.h
index 5b90198..8cfa1ca 100644
--- a/qemu/hw/pc.h
+++ b/qemu/hw/pc.h
@@ -168,7 +168,4 @@ void isa_ne2000_init(int base, qemu_irq irq, NICInfo *nd);
void extboot_init(BlockDriverState *bs, int cmd);
-/* virtio-balloon.h */
-void *virtio_balloon_init(PCIBus *bus);
-
#endif
diff --git a/qemu/hw/virtio-balloon.h b/qemu/hw/virtio-balloon.h
index 45e4b03..c71f970 100644
--- a/qemu/hw/virtio-balloon.h
+++ b/qemu/hw/virtio-balloon.h
@@ -15,6 +15,9 @@
#ifndef _QEMU_VIRTIO_BALLOON_H
#define _QEMU_VIRTIO_BALLOON_H
+#include "virtio.h"
+#include "pci.h"
+
/* from Linux's linux/virtio_balloon.h */
/* The ID for virtio_balloon */
@@ -34,4 +37,6 @@ struct virtio_balloon_config
uint32_t actual;
};
+void *virtio_balloon_init(PCIBus *bus);
+
#endif
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html