virtio_config: fix up warnings on parisc
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 23:55:50 +0000 (19:55 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 23:56:03 +0000 (19:56 -0400)
commitc84f91e2622235bb742f9f20b8675cf095157026
treec24a2b1b9835986c54c81a3334112fa672b68454
parent1a86b377aa2147a7c866b03142e848c18e5f3cb8
virtio_config: fix up warnings on parisc

Apparently, on parisc le16_to_cpu returns an int. virtio_cread_le
is very strict about type sizes so it causes a warning.
Fix it up by casting to the correct type.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20200805235550.1451637-1-mst@redhat.com
include/linux/virtio_config.h