Commit 16214312 authored by Sasha Levin's avatar Sasha Levin Committed by Ingo Molnar

tools/lib/lockdep: Add dummy task_struct state member

Commit:

  8cc05c71 ("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: default avatarSasha 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.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 1064ea49
......@@ -30,9 +30,12 @@ struct task_struct {
struct held_lock held_locks[MAX_LOCK_DEPTH];
gfp_t lockdep_reclaim_gfp;
int pid;
int state;
char comm[17];
};
#define TASK_RUNNING 0
extern struct task_struct *__curr(void);
#define current (__curr())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment