Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peng Fan and committed by
Michael S. Tsirkin
697d1549 83ef73b2

+2
+2
tools/virtio/linux/bug.h
··· 2 2 #ifndef BUG_H 3 3 #define BUG_H 4 4 5 + #include <asm/bug.h> 6 + 5 7 #define BUG_ON(__BUG_ON_cond) assert(!(__BUG_ON_cond)) 6 8 7 9 #define BUILD_BUG_ON(x)