[tip:locking/core] tools/lib/lockdep: Add dummy current_gfp_context()

From: tip-bot for Levin, Alexander (Sasha Levin)
Date: Mon Jun 05 2017 - 05:15:32 EST


Commit-ID: 3f5a3934f4165f7f59bf8383011ed559b8acce7e
Gitweb: http://git.kernel.org/tip/3f5a3934f4165f7f59bf8383011ed559b8acce7e
Author: Levin, Alexander (Sasha Levin) <alexander.levin@xxxxxxxxxxx>
AuthorDate: Thu, 25 May 2017 12:58:57 +0000
Committer: Ingo Molnar <mingo@xxxxxxxxxx>
CommitDate: Mon, 5 Jun 2017 09:28:13 +0200

tools/lib/lockdep: Add dummy current_gfp_context()

Signed-off-by: Sasha Levin <alexander.levin@xxxxxxxxxxx>
Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: a.p.zijlstra@xxxxxxxxx
Cc: ben@xxxxxxxxxxxxxxx
Link: http://lkml.kernel.org/r/20170525130005.5947-21-alexander.levin@xxxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
tools/lib/lockdep/uinclude/linux/kernel.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h
index 75ff4b1..4a31ebe 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