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>
This commit is contained in:
parent
30f1d37074
commit
6dd4215783
|
@ -118,7 +118,7 @@ static inline void free_page(unsigned long addr)
|
|||
#define dev_err(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
|
||||
#define dev_warn(dev, format, ...) fprintf (stderr, format, ## __VA_ARGS__)
|
||||
|
||||
#define WARN_ON_ONCE(cond) ((cond) && fprintf (stderr, "WARNING\n"))
|
||||
#define WARN_ON_ONCE(cond) ((cond) ? fprintf (stderr, "WARNING\n") : 0)
|
||||
|
||||
#define min(x, y) ({ \
|
||||
typeof(x) _min1 = (x); \
|
||||
|
|
1
tools/virtio/linux/thread_info.h
Normal file
1
tools/virtio/linux/thread_info.h
Normal file
|
@ -0,0 +1 @@
|
|||
#define check_copy_size(A, B, C) (1)
|
Loading…
Reference in New Issue
Block a user