Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sasha Levin and committed by
Ingo Molnar
16214312 1064ea49

+3
+3
tools/include/linux/lockdep.h
··· 30 30 struct held_lock held_locks[MAX_LOCK_DEPTH]; 31 31 gfp_t lockdep_reclaim_gfp; 32 32 int pid; 33 + int state; 33 34 char comm[17]; 34 35 }; 36 + 37 + #define TASK_RUNNING 0 35 38 36 39 extern struct task_struct *__curr(void); 37 40