From: Michael S. Tsirkin Date: Tue, 28 Feb 2012 07:07:58 +0000 (+0200) Subject: tools/virtio: stub out strong barriers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b17d5c6e190f3d328aae0444f8b93d58d0015714;p=linux-beck.git tools/virtio: stub out strong barriers The tool should never use them, abort if it does. Signed-off-by: Michael S. Tsirkin --- diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h index b4fbc91c41b4..7579f19e61e0 100644 --- a/tools/virtio/linux/virtio.h +++ b/tools/virtio/linux/virtio.h @@ -181,6 +181,9 @@ struct virtqueue { #define smp_mb() mb() # define smp_rmb() barrier() # define smp_wmb() barrier() +/* Weak barriers should be used. If not - it's a bug */ +# define rmb() abort() +# define wmb() abort() #else #error Please fill in barrier macros #endif