Commit 34e12b86 authored by Borislav Petkov's avatar Borislav Petkov Committed by Ingo Molnar

jump_label: Use static_key_linked() accessor

... instead of open-coding it, in static_key_mod().

No functional changes.
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180909114252.17575-1-bp@alien8.deSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 11da3a7f
...@@ -455,7 +455,7 @@ struct static_key_mod { ...@@ -455,7 +455,7 @@ struct static_key_mod {
static inline struct static_key_mod *static_key_mod(struct static_key *key) 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); return (struct static_key_mod *)(key->type & ~JUMP_TYPE_MASK);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment