diff options
| author | Sasha Levin <[email protected]> | 2015-08-25 01:19:44 -0400 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-08-25 09:44:22 +0200 |
| commit | 62b989de598c486df65a14dfd9bb4a9953c75568 (patch) | |
| tree | 8d79f75c5a323755b5b7ea46004273d34f73a794 /tools/lib/lockdep/uinclude/linux/kernel.h | |
| parent | 92e25fd9be82a37247e587415ff9a9e773008d56 (diff) | |
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 <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/lib/lockdep/uinclude/linux/kernel.h')
| -rw-r--r-- | tools/lib/lockdep/uinclude/linux/kernel.h | 2 |
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 cd2cc59a5da7..276c7a8b2ed1 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 |