From: Sasha Levin <Alexander.Levin@microsoft.com>
To: "mingo@redhat.com" <mingo@redhat.com>,
"peterz@infradead.org" <peterz@infradead.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Sasha Levin <Alexander.Levin@microsoft.com>
Subject: [PATCH 3/3] tools/lib/lockdep: add dummy task_struct state member
Date: Mon, 13 Aug 2018 19:05:39 +0000 [thread overview]
Message-ID: <20180813190527.16853-4-alexander.levin@microsoft.com> (raw)
In-Reply-To: <20180813190527.16853-1-alexander.levin@microsoft.com>
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>
---
tools/include/linux/lockdep.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/include/linux/lockdep.h b/tools/include/linux/lockdep.h
index 6b0c36a58fcb..e56997288f2b 100644
--- a/tools/include/linux/lockdep.h
+++ b/tools/include/linux/lockdep.h
@@ -30,9 +30,12 @@ struct task_struct {
struct held_lock held_locks[MAX_LOCK_DEPTH];
gfp_t lockdep_reclaim_gfp;
int pid;
+ int state;
char comm[17];
};
+#define TASK_RUNNING 0
+
extern struct task_struct *__curr(void);
#define current (__curr())
--
2.17.1
next prev parent reply other threads:[~2018-08-13 19:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-13 19:05 [PATCH 0/3] tools/lib/lockdep: fixes for v4.19 Sasha Levin
2018-08-13 19:05 ` [PATCH 1/3] tools/lib/lockdep: update Sasha Levin email to MSFT Sasha Levin
2018-09-10 12:36 ` [tip:locking/urgent] tools/lib/lockdep: Update " tip-bot for Sasha Levin
2018-08-13 19:05 ` [PATCH 2/3] tools/lib/lockdep: add empty nmi.h Sasha Levin
2018-09-10 12:37 ` [tip:locking/urgent] tools/lib/lockdep: Add " tip-bot for Sasha Levin
2018-08-13 19:05 ` Sasha Levin [this message]
2018-09-10 12:38 ` [tip:locking/urgent] tools/lib/lockdep: Add dummy task_struct state member tip-bot for Sasha Levin
2018-08-29 0:03 ` [PATCH 0/3] tools/lib/lockdep: fixes for v4.19 Sasha Levin
2018-09-06 15:30 ` Sasha Levin
2018-09-10 11:49 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180813190527.16853-4-alexander.levin@microsoft.com \
--to=alexander.levin@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox