All of lore.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Sasha Levin <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: peterz@infradead.org, tglx@linutronix.de,
	torvalds@linux-foundation.org, alexander.levin@microsoft.com,
	hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org,
	Alexander.Levin@microsoft.com
Subject: [tip:locking/urgent] tools/lib/lockdep: Add dummy task_struct state member
Date: Mon, 10 Sep 2018 05:38:00 -0700	[thread overview]
Message-ID: <tip-16214312df6d5aaa5324864d032ce565e97f8890@git.kernel.org> (raw)
In-Reply-To: <20180813190527.16853-4-alexander.levin@microsoft.com>

Commit-ID:  16214312df6d5aaa5324864d032ce565e97f8890
Gitweb:     https://git.kernel.org/tip/16214312df6d5aaa5324864d032ce565e97f8890
Author:     Sasha Levin <Alexander.Levin@microsoft.com>
AuthorDate: Mon, 13 Aug 2018 19:05:39 +0000
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 10 Sep 2018 13:48:24 +0200

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.

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>
---
 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())

  reply	other threads:[~2018-09-10 12:38 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 ` [PATCH 3/3] tools/lib/lockdep: add dummy task_struct state member Sasha Levin
2018-09-10 12:38   ` tip-bot for Sasha Levin [this message]
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=tip-16214312df6d5aaa5324864d032ce565e97f8890@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=alexander.levin@microsoft.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.