aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLevin, Alexander (Sasha Levin) <alexander.levin@verizon.com>2017-05-25 08:58:57 -0400
committerIngo Molnar <mingo@kernel.org>2017-06-05 03:28:13 -0400
commit3f5a3934f4165f7f59bf8383011ed559b8acce7e (patch)
tree24a2d89bc24dde838b6fca61e8d8cfa99930acfb /tools
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>
Diffstat (limited to 'tools')
-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)
54#endif 54#endif
55 55
56#define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) 56#define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
57#define pr_warn pr_err
58
59#define current_gfp_context(k) 0
57 60
58#endif 61#endif