Skip to content

Commit

Permalink
tools/virtio: more stubs to fix tools build
Browse files Browse the repository at this point in the history
Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
mstsirkin authored and davem330 committed Jan 29, 2018
1 parent 30f1d37 commit 6dd4215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/virtio/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down
1 change: 1 addition & 0 deletions tools/virtio/linux/thread_info.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define check_copy_size(A, B, C) (1)

0 comments on commit 6dd4215

Please sign in to comment.