From: Ben Hutchings Date: Tue, 3 Jul 2018 05:19:07 +0000 (+0100) Subject: lockdep: Stub task_struct::state X-Git-Tag: archive/raspbian/4.18.20-2+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3220fbce72708a6589f69ad58fb0ad4862f79fc5;p=linux.git lockdep: Stub task_struct::state Gbp-Pq: Topic bugfix/all Gbp-Pq: Name lockdep-stub-task_struct-state.patch --- diff --git a/tools/include/linux/lockdep.h b/tools/include/linux/lockdep.h index 6b0c36a58fc..8e84609afb0 100644 --- a/tools/include/linux/lockdep.h +++ b/tools/include/linux/lockdep.h @@ -31,12 +31,16 @@ struct task_struct { gfp_t lockdep_reclaim_gfp; int pid; char comm[17]; + long state; }; extern struct task_struct *__curr(void); #define current (__curr()) +/* lockdep checks task_struct::state == TASK_RUNNING */ +#define TASK_RUNNING 0 + static inline int debug_locks_off(void) { return 1;