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

Showing the changes to tools/include/linux (1 of 1 file). Show all

Unified · Split

tools/include/linux/lockdep.h+3−0
@@ -30,9 +30,12 @@ struct task_struct { · 29 unmodified lines
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())

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