aboutsummaryrefslogtreecommitdiff
path: root/tools/virtio/linux/compiler.h
AgeCommit message (Collapse)AuthorFilesLines
2016-12-16tools/virtio: fix READ_ONCE()Mark Rutland1-1/+1
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: a7c490333df3cff5 ("tools/virtio: use virt_xxx barriers") Signed-off-by: Mark Rutland <[email protected]> Cc: Jason Wang <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Reviewed-by: Jason Wang <[email protected]>
2016-01-26tools/virtio: use virt_xxx barriersMichael S. Tsirkin1-0/+9
Fix build after API changes. Reported-by: Kamal Mostafa <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>