On 02/05/2013 03:48 PM, Jesse Larrew wrote:
> Currently, the config size for virtio devices is hard coded. When a new
> feature is added that changes the config size, drivers that assume a static
> config size will break. For purposes of backward compatability, there needs

s/compatability/compatibility/

> to be a way to inform drivers of the config size needed to accomodate the

s/accomodate/accommodate/

> set of features enabled.
> 
> Signed-off-by: Jesse Larrew <jlar...@linux.vnet.ibm.com>

>  
> +/*
> + * Calculate the number of bytes up to and including the given 'field' of
> + * 'container'.
> + */
> +#define endof(container, field) \
> +    (intptr_t)(&(((container *)0)->field)+1)

Insufficient (); should be:
((intptr_t)(&(((container *)0)->field)+1))

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to