Skip to content

Commit 34e12b8

Browse files
suryasaimadhuIngo Molnar
authored andcommitted
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@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.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 11da3a7 commit 34e12b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/jump_label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ struct static_key_mod {
455455

456456
static inline struct static_key_mod *static_key_mod(struct static_key *key)
457457
{
458-
WARN_ON_ONCE(!(key->type & JUMP_TYPE_LINKED));
458+
WARN_ON_ONCE(!static_key_linked(key));
459459
return (struct static_key_mod *)(key->type & ~JUMP_TYPE_MASK);
460460
}
461461

0 commit comments

Comments
 (0)