diff options
author | Levin, Alexander (Sasha Levin) <alexander.levin@verizon.com> | 2017-05-25 08:58:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-06-05 03:28:09 -0400 |
commit | 6c8e6483850e7a7e44fd584790969c308887c468 (patch) | |
tree | a22b5da6c662b1479f17b6fbfaf040f4a0881491 /tools/lib | |
parent | 20fb654aef1c929f7befb40678e2cb65a77ead7f (diff) |
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>
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/bitops.h | 3 | ||||
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/compiler.h | 2 | ||||
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/kernel.h | 2 | ||||
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/rcu.h | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/tools/lib/lockdep/uinclude/linux/bitops.h b/tools/lib/lockdep/uinclude/linux/bitops.h deleted file mode 100644 index fab00ff936d1..000000000000 --- a/tools/lib/lockdep/uinclude/linux/bitops.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | |||
2 | /* empty file */ | ||
3 | |||
diff --git a/tools/lib/lockdep/uinclude/linux/compiler.h b/tools/lib/lockdep/uinclude/linux/compiler.h index fd3e56a83fc2..fba5e022cee7 100644 --- a/tools/lib/lockdep/uinclude/linux/compiler.h +++ b/tools/lib/lockdep/uinclude/linux/compiler.h | |||
@@ -7,4 +7,6 @@ | |||
7 | #define WRITE_ONCE(x, val) x=(val) | 7 | #define WRITE_ONCE(x, val) x=(val) |
8 | #define RCU_INIT_POINTER(p, v) p=(v) | 8 | #define RCU_INIT_POINTER(p, v) p=(v) |
9 | 9 | ||
10 | #define __packed __attribute__((packed)) | ||
11 | |||
10 | #endif | 12 | #endif |
diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h index 021cff4f4e3d..faa98cc7971a 100644 --- a/tools/lib/lockdep/uinclude/linux/kernel.h +++ b/tools/lib/lockdep/uinclude/linux/kernel.h | |||
@@ -52,4 +52,6 @@ static inline int lockdep_warn(int condition) | |||
52 | #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) | 52 | #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) | ||
56 | |||
55 | #endif | 57 | #endif |
diff --git a/tools/lib/lockdep/uinclude/linux/rcu.h b/tools/lib/lockdep/uinclude/linux/rcu.h index 042ee8e463c9..6f0332324a6d 100644 --- a/tools/lib/lockdep/uinclude/linux/rcu.h +++ b/tools/lib/lockdep/uinclude/linux/rcu.h | |||
@@ -18,4 +18,6 @@ static inline bool rcu_is_watching(void) | |||
18 | return false; | 18 | return false; |
19 | } | 19 | } |
20 | 20 | ||
21 | #define rcu_assign_pointer(p, v) ((p) = (v)) | ||
22 | |||
21 | #endif | 23 | #endif |