Re: [PATCH] virtio_ring: sparse warning fixup

2020-07-12 Thread Jason Wang
On 2020/7/10 下午6:49, Michael S. Tsirkin wrote: virtio_store_mb was built with split ring in mind so it accepts __virtio16 arguments. Packed ring uses __le16 values, so sparse complains. It's just a store with some barriers so let's convert it to a macro, we don't loose too much type safety by

[PATCH] virtio_ring: sparse warning fixup

2020-07-10 Thread Michael S. Tsirkin
virtio_store_mb was built with split ring in mind so it accepts __virtio16 arguments. Packed ring uses __le16 values, so sparse complains. It's just a store with some barriers so let's convert it to a macro, we don't loose too much type safety by doing that. Signed-off-by: Michael S. Tsirkin ---