On 11/01/2011 05:14 PM, Alexander Graf wrote: >> And specifically: >> >> QLIST_FOREACH(qdev,&phb->host_state.bus->qbus.children, sibling) { >> PCIDevice *dev = (PCIDevice *)qdev; >> if (dev->devfn == devfn) { >> return dev; >> } >> } >> >> QBus::children is a QTAILQ, not a QLIST. >> >> Was this code tested at all? > > Uh, yeah. Compile and execution tested O_o.
Do you not have libfdt installed? Regards, Anthony Liguori > > Alex > >