Skip to contentSkip to conversation

fix Xen compilation

PATCH Applied Stefano Stabellini 3 participants 4 messages Aug 1, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix Xen compilation

xen_pt_unregister_device is used as PCIUnregisterFunc, so it should match the type.

hw/xen_pt.c +1 -3
index fdf68aa..307119a 100644
@@ -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[] = {
Tested-by on v1 1/1
#1 lore raw

Am 01.08.2012 12:19, schrieb Stefano Stabellini:

Quoted 4 lines

xen_pt_unregister_device is used as PCIUnregisterFunc, so it should match the type.

/-F

Quoted 24 lines
hw/xen_pt.c +1 -3
index fdf68aa..307119a 100644
@@ -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[] = {
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#3 lore raw
In reply to Stefano Stabellini
Quoted 4 lines · Stefano Stabellini

xen_pt_unregister_device is used as PCIUnregisterFunc, so it should match the type.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 23 lines
hw/xen_pt.c +1 -3
index fdf68aa..307119a 100644
@@ -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[] = {