Re: [PATCH 2/3] vringh: kill off ACCESS_ONCE()

From
Cornelia Huck <hidden>
Date
2016-11-24 11:35:58
Also in
kvm, lkml, netdev
On Thu, 24 Nov 2016 10:25:13 +0000
Mark Rutland [off-list ref] wrote:
Despite living under drivers/ vringh.c is also used as part of the userspace
virtio tools. Before we can kill off the ACCESS_ONCE()definition in the tools,
we must convert vringh.c to use {READ,WRITE}_ONCE().

This patch does so, along with the required include of <linux/compiler.h> for
the relevant definitions. The userspace tools provide their own definitions in
their own <linux/compiler.h>.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Jason Wang <redacted>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
---
 drivers/vhost/vringh.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Reviewed-by: Cornelia Huck <redacted>
Thread (1 message) 1 message, 1 author, last reply 2016-11-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help