tools/lib/lockdep: Fix compilation for 4.11

- More rcu stubs
 - New dummy headers due to sched header split
 - jhash2 included in due to kernel lockdep inclusion and usage

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-13-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
Levin, Alexander (Sasha Levin)
2017-05-25 12:58:47 +00:00
committed by Ingo Molnar
parent 20fb654aef
commit 6c8e648385
7 changed files with 237 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
/* empty file */

View File

@@ -7,4 +7,6 @@
#define WRITE_ONCE(x, val) x=(val)
#define RCU_INIT_POINTER(p, v) p=(v)
#define __packed __attribute__((packed))
#endif

View File

@@ -52,4 +52,6 @@ static inline int lockdep_warn(int condition)
#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
#endif
#define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
#endif

View File

@@ -18,4 +18,6 @@ static inline bool rcu_is_watching(void)
return false;
}
#define rcu_assign_pointer(p, v) ((p) = (v))
#endif