tools/liblockdep: Correct macro for WARN
authorSasha Levin <sasha.levin@oracle.com>
Tue, 25 Aug 2015 05:19:44 +0000 (01:19 -0400)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Aug 2015 07:44:22 +0000 (09:44 +0200)
commit62b989de598c486df65a14dfd9bb4a9953c75568
tree8d79f75c5a323755b5b7ea46004273d34f73a794
parent92e25fd9be82a37247e587415ff9a9e773008d56
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>
tools/lib/lockdep/uinclude/linux/kernel.h