[PATCH 20/21] tools: liblockdep: add dummy current_gfp_context()

From: Levin, Alexander (Sasha Levin)
Date: Thu May 25 2017 - 09:01:39 EST


Signed-off-by: Sasha Levin <alexander.levin@xxxxxxxxxxx>
---
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 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
--
2.11.0