aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevin, Alexander (Sasha Levin)2017-05-25 12:58:57 +0000
committerIngo Molnar2017-06-05 09:28:13 +0200
commit3f5a3934f4165f7f59bf8383011ed559b8acce7e (patch)
tree24a2d89bc24dde838b6fca61e8d8cfa99930acfb
parent61d4595eed163ea416c13c4b994f22190711151b (diff)
tools/lib/lockdep: Add dummy current_gfp_context()
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>
-rw-r--r--tools/lib/lockdep/uinclude/linux/kernel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h
index 75ff4b1bbcac..4a31ebe1a377 100644
--- a/tools/lib/lockdep/uinclude/linux/kernel.h
+++ b/tools/lib/lockdep/uinclude/linux/kernel.h
@@ -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