virtio_ring: sparse warning fixup
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 10:46:04 +0000 (06:46 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 13:30:19 +0000 (09:30 -0400)
commit5487196878bc926a1ee15069c13aa48b9a894fab
treeae2abb8bd9ae75b0e5633ea7dbdb88ba0114519c
parent8875bbba97087bf4a677071723d04fc00730f1e7
virtio_ring: sparse warning fixup

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 <mst@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
include/linux/virtio_ring.h