Am 24.01.2013 15:42, schrieb Cornelia Huck: > On Thu, 24 Jan 2013 14:18:10 +0100 > Andreas Färber <afaerber@xxxxxxx> wrote: > > Forgot one point :) > >>> +/* DeviceState to VirtioCcwData. Note: used on datapath, >>> + * be careful and test performance if you change this. >>> + */ >>> +static inline VirtioCcwData *to_virtio_ccw_data_fast(DeviceState *d) >>> +{ >>> + return container_of(d, VirtioCcwData, parent_obj); >>> +} >>> + >>> +/* DeviceState to VirtioCcwData. TODO: use QOM. */ >> >> Are the prerequisites to resolve this TODO not yet in qemu.git? > > This is copied verbatim from s390-virtio-bus/virtio-pci; my guess it > that it will be resolved tree-wide. > >> >>> +static inline VirtioCcwData *to_virtio_ccw_data(DeviceState *d) >>> +{ >>> + return container_of(d, VirtioCcwData, parent_obj); >>> +} >>> + You did introduce VIRTIO_CCW_DEVICE(obj) though, no? Then you can drop this function and use it instead. Can be a follow-up but it seems a file-local issue to me. Cheers, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html