summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2019-05-15 11:35:48 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2019-05-15 11:35:48 +1000
commitb5ab589fff2147591fee00c724783cc8b37c514f (patch)
tree84d9886817df78b915b413cd93af4b0c1e054555 /tools
parent659f9e913bee392cd42632363b96d03755be3ced (diff)
parent82c80f76e9daf88cc8e88a3b99865be258f6ed9b (diff)
Merge remote-tracking branch 'vhost/linux-next'
Diffstat (limited to 'tools')
-rw-r--r--tools/virtio/linux/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
index 7ef45a4a3cba..6683b4a70b05 100644
--- a/tools/virtio/linux/kernel.h
+++ b/tools/virtio/linux/kernel.h
@@ -127,7 +127,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") : 0)
+#define WARN_ON_ONCE(cond) (unlikely(cond) ? fprintf (stderr, "WARNING\n") : 0)
#define min(x, y) ({ \
typeof(x) _min1 = (x); \