提交 47fb65ce 编写于 作者: S Stefano Stabellini

fix Xen compilation

xen_pt_unregister_device is used as PCIUnregisterFunc, so it should
match the type.
Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: NAndreas Färber <afaerber@suse.de>
上级 f6ccf1f4
...@@ -764,7 +764,7 @@ out: ...@@ -764,7 +764,7 @@ out:
return 0; 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); XenPCIPassthroughState *s = DO_UPCAST(XenPCIPassthroughState, dev, d);
uint8_t machine_irq = s->machine_irq; uint8_t machine_irq = s->machine_irq;
...@@ -814,8 +814,6 @@ static int xen_pt_unregister_device(PCIDevice *d) ...@@ -814,8 +814,6 @@ static int xen_pt_unregister_device(PCIDevice *d)
memory_listener_unregister(&s->memory_listener); memory_listener_unregister(&s->memory_listener);
xen_host_pci_device_put(&s->real_device); xen_host_pci_device_put(&s->real_device);
return 0;
} }
static Property xen_pci_passthrough_properties[] = { static Property xen_pci_passthrough_properties[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册