aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2018-09-09 13:42:52 +0200
committerIngo Molnar <[email protected]>2018-09-10 08:23:37 +0200
commit34e12b864e617ca7e4f6a3108460aa143bf20056 (patch)
tree29f9c8292f5c4e5fefe2ca4d10c5896f734c25a9
parent11da3a7f84f19c26da6f86af878298694ede0804 (diff)
jump_label: Use static_key_linked() accessor
... instead of open-coding it, in static_key_mod(). No functional changes. Signed-off-by: Borislav Petkov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jason Baron <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt (VMware) <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--kernel/jump_label.c2
1 files changed, 1 insertions, 1 deletions
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);
}