History

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.

Sasha Levin committed 8 years ago

Commit 16214311 parent 1064ea41 file · +3 −0Browse files

Unified · Split

tools/include/linux/lockdep.h+3−0
@@ -30,9 +30,12 @@ struct task_struct { · 29 unmodified lines
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
36extern struct task_struct *__curr(void);39extern struct task_struct *__curr(void);
37 40
38#define current (__curr())41#define current (__curr())

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t