summaryrefslogtreecommitdiffstats
path: root/hw/xen_pt.c
diff options
context:
space:
mode:
authorStefano Stabellini2012-08-01 12:19:09 +0200
committerAnthony Liguori2012-08-01 15:43:37 +0200
commitfb5b0c6d5cea2d05a5e4e81390a4b6c4c70c6668 (patch)
tree9d67e3d0168ff95fa1d237ad41b7180818d86f03 /hw/xen_pt.c
parentconfigure: -I\$(SRC_PATH) goes in QEMU_INCLUDES not QEMU_CFLAGS (diff)
downloadqemu-fb5b0c6d5cea2d05a5e4e81390a4b6c4c70c6668.tar.gz
qemu-fb5b0c6d5cea2d05a5e4e81390a4b6c4c70c6668.tar.xz
qemu-fb5b0c6d5cea2d05a5e4e81390a4b6c4c70c6668.zip
fix Xen compilation
xen_pt_unregister_device is used as PCIUnregisterFunc, so it should match the type. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/xen_pt.c')
-rw-r--r--hw/xen_pt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/xen_pt.c b/hw/xen_pt.c
index fdf68aa564..307119a12f 100644
--- a/hw/xen_pt.c
+++ b/hw/xen_pt.c
@@ -764,7 +764,7 @@ out:
return 0;
}
-static int xen_pt_unregister_device(PCIDevice *d)
+static void xen_pt_unregister_device(PCIDevice *d)
{
XenPCIPassthroughState *s = DO_UPCAST(XenPCIPassthroughState, dev, d);
uint8_t machine_irq = s->machine_irq;
@@ -814,8 +814,6 @@ static int xen_pt_unregister_device(PCIDevice *d)
memory_listener_unregister(&s->memory_listener);
xen_host_pci_device_put(&s->real_device);
-
- return 0;
}
static Property xen_pci_passthrough_properties[] = {