diff options
author | Sasha Levin <Alexander.Levin@microsoft.com> | 2018-08-13 15:05:39 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-09-10 07:48:24 -0400 |
commit | 16214312df6d5aaa5324864d032ce565e97f8890 (patch) | |
tree | f82188bca5d2dbe83e73d8f808da2ff6cf122988 | |
parent | 1064ea494bb00519c6e34f791dcf17436f70592d (diff) |
tools/lib/lockdep: Add dummy task_struct state member
Commit:
8cc05c71ba5f ("locking/lockdep: Move sanity check to inside lockdep_print_held_locks()")
added accesses to the task_struct's state member. Add dummy userspace declaration.
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <Alexander.Levin@microsoft.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180813190527.16853-4-alexander.levin@microsoft.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | tools/include/linux/lockdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/linux/lockdep.h b/tools/include/linux/lockdep.h index 6b0c36a58fcb..e56997288f2b 100644 --- a/tools/include/linux/lockdep.h +++ b/tools/include/linux/lockdep.h | |||
@@ -30,9 +30,12 @@ struct task_struct { | |||
30 | struct held_lock held_locks[MAX_LOCK_DEPTH]; | 30 | struct held_lock held_locks[MAX_LOCK_DEPTH]; |
31 | gfp_t lockdep_reclaim_gfp; | 31 | gfp_t lockdep_reclaim_gfp; |
32 | int pid; | 32 | int pid; |
33 | int state; | ||
33 | char comm[17]; | 34 | char comm[17]; |
34 | }; | 35 | }; |
35 | 36 | ||
37 | #define TASK_RUNNING 0 | ||
38 | |||
36 | extern struct task_struct *__curr(void); | 39 | extern struct task_struct *__curr(void); |
37 | 40 | ||
38 | #define current (__curr()) | 41 | #define current (__curr()) |