Commit 83eb9db9 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

virtio_config: drop LE option from config space

All drivers now use virtio_cread/write_le for LE config
space fields. Drop LE option from virtio_cread/write, only leaving
the option to access transitional fields.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent d83c67c4
...@@ -293,19 +293,7 @@ static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val) ...@@ -293,19 +293,7 @@ static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val)
__u8: (x), \ __u8: (x), \
__virtio16: virtio16_to_cpu((vdev), (x)), \ __virtio16: virtio16_to_cpu((vdev), (x)), \
__virtio32: virtio32_to_cpu((vdev), (x)), \ __virtio32: virtio32_to_cpu((vdev), (x)), \
__virtio64: virtio64_to_cpu((vdev), (x)), \ __virtio64: virtio64_to_cpu((vdev), (x)) \
/*
* Why define a default? checker can distinguish between
* e.g. __u16, __le16 and __virtio16, but GCC can't so
* attempts to define variants for both look like a duplicate
* variant to it.
*/ \
default: _Generic((x), \
__u8: (x), \
__le16: virtio16_to_cpu((vdev), (__force __virtio16)(x)), \
__le32: virtio32_to_cpu((vdev), (__force __virtio32)(x)), \
__le64: virtio64_to_cpu((vdev), (__force __virtio64)(x)) \
) \
) )
#define cpu_to_virtio(vdev, x, m) \ #define cpu_to_virtio(vdev, x, m) \
...@@ -313,19 +301,7 @@ static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val) ...@@ -313,19 +301,7 @@ static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val)
__u8: (x), \ __u8: (x), \
__virtio16: cpu_to_virtio16((vdev), (x)), \ __virtio16: cpu_to_virtio16((vdev), (x)), \
__virtio32: cpu_to_virtio32((vdev), (x)), \ __virtio32: cpu_to_virtio32((vdev), (x)), \
__virtio64: cpu_to_virtio64((vdev), (x)), \ __virtio64: cpu_to_virtio64((vdev), (x)) \
/*
* Why define a default? checker can distinguish between
* e.g. __u16, __le16 and __virtio16, but GCC can't so
* attempts to define variants for both look like a duplicate
* variant to it.
*/ \
default: _Generic((m), \
__u8: (x), \
__le16: (__force __le16)cpu_to_virtio16((vdev), (x)), \
__le32: (__force __le32)cpu_to_virtio32((vdev), (x)), \
__le64: (__force __le64)cpu_to_virtio64((vdev), (x)) \
) \
) )
#define __virtio_native_type(structname, member) \ #define __virtio_native_type(structname, member) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment