[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-34e12b864e617ca7e4f6a3108460aa143bf20056@git.kernel.org>
Date: Mon, 10 Sep 2018 00:54:51 -0700
From: tip-bot for Borislav Petkov <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: jbaron@...mai.com, peterz@...radead.org, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org, mingo@...nel.org,
paulmck@...ux.vnet.ibm.com, torvalds@...ux-foundation.org,
bp@...e.de, hpa@...or.com, jpoimboe@...hat.com,
rostedt@...dmis.org, tglx@...utronix.de
Subject: [tip:locking/core] jump_label: Use static_key_linked() accessor
Commit-ID: 34e12b864e617ca7e4f6a3108460aa143bf20056
Gitweb: https://git.kernel.org/tip/34e12b864e617ca7e4f6a3108460aa143bf20056
Author: Borislav Petkov <bp@...e.de>
AuthorDate: Sun, 9 Sep 2018 13:42:52 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Mon, 10 Sep 2018 08:23:37 +0200
jump_label: Use static_key_linked() accessor
... instead of open-coding it, in static_key_mod().
No functional changes.
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jason Baron <jbaron@...mai.com>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Steven Rostedt (VMware) <rostedt@...dmis.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/20180909114252.17575-1-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
kernel/jump_label.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/jump_label.c b/kernel/jump_label.c
index 01ebdf1f9f40..61d1c0178731 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -455,7 +455,7 @@ struct static_key_mod {
static inline struct static_key_mod *static_key_mod(struct static_key *key)
{
- WARN_ON_ONCE(!(key->type & JUMP_TYPE_LINKED));
+ WARN_ON_ONCE(!static_key_linked(key));
return (struct static_key_mod *)(key->type & ~JUMP_TYPE_MASK);
}
Powered by blists - more mailing lists