tools/lib/lockdep: Add dummy current_gfp_context()
authorLevin, Alexander (Sasha Levin) <alexander.levin@verizon.com>
Thu, 25 May 2017 12:58:57 +0000 (12:58 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Jun 2017 07:28:13 +0000 (09:28 +0200)
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: a.p.zijlstra@chello.nl
Cc: ben@decadent.org.uk
Link: http://lkml.kernel.org/r/20170525130005.5947-21-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/lib/lockdep/uinclude/linux/kernel.h

index 75ff4b1bbcacabbaebfde6627cf49372c9ed9a59..4a31ebe1a377c065e0c3c27e81c2fe85ed43115b 100644 (file)
@@ -54,5 +54,8 @@ static inline int lockdep_warn(int condition)
 #endif
 
 #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
+#define pr_warn pr_err
+
+#define current_gfp_context(k) 0
 
 #endif