From: Michael S. Tsirkin Date: Tue, 28 May 2013 10:20:23 +0000 (+0300) Subject: virtio-pci: drop unused wmb macro X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~347 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=87d23f78aa79b72da022afda358bbc8a8509ca70;p=qemu-upstream-4.5-testing.git virtio-pci: drop unused wmb macro The implementation is wrong for kvm, and it's unused anyway. Drop it. Signed-off-by: Michael S. Tsirkin Message-id: 20130528102023.GA30055@redhat.com Signed-off-by: Anthony Liguori --- diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 70d2c6b5e..444b71aab 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -89,12 +89,6 @@ /* Flags track per-device state like workarounds for quirks in older guests. */ #define VIRTIO_PCI_FLAG_BUS_MASTER_BUG (1 << 0) -/* QEMU doesn't strictly need write barriers since everything runs in - * lock-step. We'll leave the calls to wmb() in though to make it obvious for - * KVM or if kqemu gets SMP support. - */ -#define wmb() do { } while (0) - /* HACK for virtio to determine if it's running a big endian guest */ bool virtio_is_big_endian(void);