summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2015-08-25 05:19:44 (GMT)
committerIngo Molnar <mingo@kernel.org>2015-08-25 07:44:22 (GMT)
commit62b989de598c486df65a14dfd9bb4a9953c75568 (patch)
tree8d79f75c5a323755b5b7ea46004273d34f73a794 /tools/lib
parent92e25fd9be82a37247e587415ff9a9e773008d56 (diff)
downloadlinux-62b989de598c486df65a14dfd9bb4a9953c75568.tar.xz
tools/liblockdep: Correct macro for WARN
As Peter Zijlstra pointed out, the varargs for WARN() are optional, so we need to correctly handle the case where they don't exist. This would cause a compilation error. Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1440479985-6696-2-git-send-email-sasha.levin@oracle.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/lockdep/uinclude/linux/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h
index cd2cc59..276c7a8 100644
--- a/tools/lib/lockdep/uinclude/linux/kernel.h
+++ b/tools/lib/lockdep/uinclude/linux/kernel.h
@@ -23,7 +23,7 @@
#define WARN_ON(x) (x)
#define WARN_ON_ONCE(x) (x)
#define likely(x) (x)
-#define WARN(x, y, z) (x)
+#define WARN(x, y...) (x)
#define uninitialized_var(x) x
#define __init
#define noinline