summaryrefslogtreecommitdiff
path: root/tools/virtio
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2020-12-09 16:42:03 +0800
committerMichael S. Tsirkin <mst@redhat.com>2020-12-18 16:14:30 -0500
commit697d1549140cdcdc4cfcd0bf94e62643008972b7 (patch)
treeb7adab29792e40c5174cc227b626da7afbe0df5e /tools/virtio
parent83ef73b27eb2363f44faf9c3ee28a3fe752cfd15 (diff)
tools/virtio: include asm/bug.h
WARN_ON is used in drivers/vhost/vringh.c, to avoid build failure, need include asm/bug.h Signed-off-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20201209084205.24062-2-peng.fan@oss.nxp.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio')
-rw-r--r--tools/virtio/linux/bug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virtio/linux/bug.h b/tools/virtio/linux/bug.h
index b14c2c3b6b85..813baf13f62a 100644
--- a/tools/virtio/linux/bug.h
+++ b/tools/virtio/linux/bug.h
@@ -2,6 +2,8 @@
#ifndef BUG_H
#define BUG_H
+#include <asm/bug.h>
+
#define BUG_ON(__BUG_ON_cond) assert(!(__BUG_ON_cond))
#define BUILD_BUG_ON(x)