mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
tools/virtio: stub out strong barriers
The tool should never use them, abort if it does. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
b0820a50a0
commit
b17d5c6e19
1 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,9 @@ struct virtqueue {
|
||||||
#define smp_mb() mb()
|
#define smp_mb() mb()
|
||||||
# define smp_rmb() barrier()
|
# define smp_rmb() barrier()
|
||||||
# define smp_wmb() barrier()
|
# define smp_wmb() barrier()
|
||||||
|
/* Weak barriers should be used. If not - it's a bug */
|
||||||
|
# define rmb() abort()
|
||||||
|
# define wmb() abort()
|
||||||
#else
|
#else
|
||||||
#error Please fill in barrier macros
|
#error Please fill in barrier macros
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue