Received: from eggs.gnu.org ([140.186.70.92]:47895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLMG1-0000MU-Qg for qemu-devel@nongnu.org; Tue, 01 Nov 2011 17:52:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLMG0-0001Gh-Nt for qemu-devel@nongnu.org; Tue, 01 Nov 2011 17:52:33 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:56322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLMG0-0001GG-HV for qemu-devel@nongnu.org; Tue, 01 Nov 2011 17:52:32 -0400 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 Nov 2011 15:52:16 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pA1Lpqj2096862 for ; Tue, 1 Nov 2011 15:51:53 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pA1Lpohr012903 for ; Tue, 1 Nov 2011 15:51:51 -0600 From: Anthony Liguori Date: Tue, 1 Nov 2011 16:51:44 -0500 Message-Id: <1320184304-10089-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH] spapr: fix build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Anthony Liguori , Alex Graf , David Gibson Signed-off-by: Anthony Liguori --- hw/spapr_pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c index 2a5e637..7162588 100644 --- a/hw/spapr_pci.c +++ b/hw/spapr_pci.c @@ -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]; -- 1.7.4.1