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

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>

authored by

Sasha Levin and committed by
Ingo Molnar
62b989de 92e25fd9

+1 -1
+1 -1
tools/lib/lockdep/uinclude/linux/kernel.h
··· 23 23 #define WARN_ON(x) (x) 24 24 #define WARN_ON_ONCE(x) (x) 25 25 #define likely(x) (x) 26 - #define WARN(x, y, z) (x) 26 + #define WARN(x, y...) (x) 27 27 #define uninitialized_var(x) x 28 28 #define __init 29 29 #define noinline