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

tools/virtio: more stubs to fix tools build

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Michael S. Tsirkin and committed by
David S. Miller
6dd42157 30f1d370

+2 -1
+1 -1
tools/virtio/linux/kernel.h
··· 118 118 #define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) 119 119 #define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__) 120 120 121 - #define WARN_ON_ONCE(cond) ((cond) && fprintf (stderr, "WARNING\n")) 121 + #define WARN_ON_ONCE(cond) ((cond) ? fprintf (stderr, "WARNING\n") : 0) 122 122 123 123 #define min(x, y) ({ \ 124 124 typeof(x) _min1 = (x); \
+1
tools/virtio/linux/thread_info.h
··· 1 + #define check_copy_size(A, B, C) (1)