From: Levin, Alexander (Sasha Levin) Date: Thu, 25 May 2017 12:58:57 +0000 (+0000) Subject: tools/lib/lockdep: Add dummy current_gfp_context() X-Git-Tag: v4.13-rc1~207^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f5a3934f4165f7f59bf8383011ed559b8acce7e;p=karo-tx-linux.git tools/lib/lockdep: Add dummy current_gfp_context() Signed-off-by: Sasha Levin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner 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 --- 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