linux/tools/virtio
Mark Rutland 5da889c795 tools/virtio: fix READ_ONCE()
The virtio tools implementation of READ_ONCE() has a single parameter called
'var', but erroneously refers to 'val' for its cast, and thus won't work unless
there's a variable of the correct type that happens to be called 'var'.

Fix this with s/var/val/, making READ_ONCE() work as expected regardless.

Fixes: a7c490333d ("tools/virtio: use virt_xxx barriers")
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: linux-kernel@vger.kernel.org
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
2016-12-16 00:13:36 +02:00
..
asm tools/virtio: use virt_xxx barriers 2016-01-26 10:18:29 +02:00
linux tools/virtio: fix READ_ONCE() 2016-12-16 00:13:36 +02:00
ringtest ringtest: poll for new buffers once before updating event index 2016-10-31 00:21:43 +02:00
uapi/linux tools/virtio: more stubs 2014-12-15 23:49:19 +02:00
vhost_test vhost test module 2010-12-09 16:00:21 +02:00
virtio-trace tools: Fix pthread flag for Makefile of trace-agent used by virtio-trace 2012-09-28 15:05:13 +09:30
.gitignore virtio tools: add .gitignore 2013-07-15 11:18:31 +09:30
Makefile tools/virtio: propagate V=X to kernel build 2015-09-16 12:48:07 +03:00
virtio_test.c tools/virtio: add virtio 1.0 in virtio_test 2014-12-15 23:49:22 +02:00
vringh_test.c tools/virtio: add virtio 1.0 in vringh_test 2014-12-15 23:49:22 +02:00