Skip to content

Commit 1621431

Browse files
Sasha Leviningomolnar
authored andcommitted
tools/lib/lockdep: Add dummy task_struct state member
Commit: 8cc05c7 ("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>
1 parent 1064ea4 commit 1621431

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tools/include/linux/lockdep.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ struct task_struct {
3030
struct held_lock held_locks[MAX_LOCK_DEPTH];
3131
gfp_t lockdep_reclaim_gfp;
3232
int pid;
33+
int state;
3334
char comm[17];
3435
};
3536

37+
#define TASK_RUNNING 0
38+
3639
extern struct task_struct *__curr(void);
3740

3841
#define current (__curr())

0 commit comments

Comments
 (0)