From patchwork Wed Jul 18 15:07:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC, v9, 12/27] virtio-blk: Add workaround for BUG_ON() dependency in virtio_ring.h Date: Wed, 18 Jul 2012 05:07:39 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 171717 Message-Id: <1342624074-24650-13-git-send-email-stefanha@linux.vnet.ibm.com> To: Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , kvm@vger.kernel.org, "Michael S. Tsirkin" , Khoa Huynh , Paolo Bonzini , Asias He Signed-off-by: Stefan Hajnoczi --- hw/dataplane/vring.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/dataplane/vring.h b/hw/dataplane/vring.h index 3eab4b4..44ef4a9 100644 --- a/hw/dataplane/vring.h +++ b/hw/dataplane/vring.h @@ -1,6 +1,11 @@ #ifndef VRING_H #define VRING_H +/* Some virtio_ring.h files use BUG_ON() */ +#ifndef BUG_ON +#define BUG_ON(x) +#endif + #include #include "qemu-common.h"