Skip to contentSkip to conversation

spapr: fix build

PATCH In review Anthony Liguori 3 participants 3 messages Nov 1, 2011 – Nov 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spapr: fix build

---
 hw/spapr_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
hw/spapr_pci.c +2 -2
index 2a5e637..7162588 100644
@@ -51,7 +51,7 @@ static PCIDevice *find_dev(sPAPREnvironment *spapr,
             continue;
         }
 
-        QLIST_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
+        QTAILQ_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
             PCIDevice *dev = (PCIDevice *)qdev;
             if (dev->devfn == devfn) {
                 return dev;
@@ -397,7 +397,7 @@ int spapr_populate_pci_devices(sPAPRPHBState *phb,
 
     /* Populate PCI devices and allocate IRQs */
     devices = 0;
-    QLIST_FOREACH(qdev, &bus->qbus.children, sibling) {
+    QTAILQ_FOREACH(qdev, &bus->qbus.children, sibling) {
         PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
         int irq_index = pci_spapr_map_irq(dev, 0);
         uint32_t *irqmap = interrupt_map[devices];
Signature · 1 line
1.7.4.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Anthony Liguori

If that's what it takes to make it compile for you, please apply it. i'm currently not anywhere close to a box to test it on myself (and figure out what went wrong).

Alex

Quoted 29 lines

---
hw/spapr_pci.c | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)
hw/spapr_pci.c +2 -2
index 2a5e637..7162588 100644
@@ -51,7 +51,7 @@ static PCIDevice *find_dev(sPAPREnvironment *spapr,
            continue;
        }
 
-        QLIST_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
+        QTAILQ_FOREACH(qdev, &phb->host_state.bus->qbus.children, sibling) {
            PCIDevice *dev = (PCIDevice *)qdev;
            if (dev->devfn == devfn) {
                return dev;
@@ -397,7 +397,7 @@ int spapr_populate_pci_devices(sPAPRPHBState *phb,
 
    /* Populate PCI devices and allocate IRQs */
    devices = 0;
-    QLIST_FOREACH(qdev, &bus->qbus.children, sibling) {
+    QTAILQ_FOREACH(qdev, &bus->qbus.children, sibling) {
        PCIDevice *dev = DO_UPCAST(PCIDevice, qdev, qdev);
        int irq_index = pci_spapr_map_irq(dev, 0);
        uint32_t *irqmap = interrupt_map[devices];
Signature · 1 line
1.7.4.1
Acked-by
#2 lore raw
Quoted 6 lines · Alexander Graf

On 01.11.2011, at 14:51, Anthony Liguori <[email protected]> wrote:

Quoted 7 lines
Quoted 1 line

If that's what it takes to make it compile for you, please apply it. i'm currently not anywhere close to a box to test it on myself (and figure out what went wrong).

I independently created this patch yesterday and it worked, so

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson