[SLOF] [PATCH v5 21/23] virtio: 1.0 helper to read 16/32/64 bit value

Thomas Huth thuth at redhat.com
Fri Jan 29 23:45:19 AEDT 2016


On 29.01.2016 12:19, Nikunj A Dadhania wrote:
> To avoid cluttering the driver code with modern/legacy code introduce
> virtio_cpu_to_modern{16,32,64} and virtio_modern{16,32,64}_to_cpu in a
> separate header file virtio-internal.h.
> 
> Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
> Suggested-by: Thomas Huth <thuth at redhat.com>
> Reviewed-by: Thomas Huth <thuth at redhat.com>
> ---
>  lib/libvirtio/virtio-internal.h | 48 +++++++++++++++++++++++++++++++++++++++++
>  lib/libvirtio/virtio.h          |  1 -
>  2 files changed, 48 insertions(+), 1 deletion(-)
>  create mode 100644 lib/libvirtio/virtio-internal.h
...
> diff --git a/lib/libvirtio/virtio.h b/lib/libvirtio/virtio.h
> index 0fee4ba..54d91b8 100644
> --- a/lib/libvirtio/virtio.h
> +++ b/lib/libvirtio/virtio.h
> @@ -124,5 +124,4 @@ extern uint64_t virtio_get_config(struct virtio_device *dev, int offset, int siz
>  extern int __virtio_read_config(struct virtio_device *dev, void *dst,
>  				int offset, int len);
>  
> -
>  #endif /* _LIBVIRTIO_H */

Nit: Unnecessary white space change.

 Thomas



More information about the SLOF mailing list