From: Stefano Stabellini Date: Wed, 1 Aug 2012 10:19:09 +0000 (+0100) Subject: fix Xen compilation X-Git-Tag: v1.2.0-rc0~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb5b0c6d5cea2d05a5e4e81390a4b6c4c70c6668;p=thirdparty%2Fqemu.git fix Xen compilation xen_pt_unregister_device is used as PCIUnregisterFunc, so it should match the type. Signed-off-by: Stefano Stabellini Signed-off-by: Anthony Liguori --- diff --git a/hw/xen_pt.c b/hw/xen_pt.c index fdf68aa564f..307119a12f7 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[] = {