From: Borislav Petkov Date: Sun, 9 Sep 2018 11:42:52 +0000 (+0200) Subject: jump_label: Use static_key_linked() accessor X-Git-Tag: v5.4-rc1~2422^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34e12b864e617ca7e4f6a3108460aa143bf20056;p=platform%2Fkernel%2Flinux-rpi.git jump_label: Use static_key_linked() accessor ... instead of open-coding it, in static_key_mod(). No functional changes. Signed-off-by: Borislav Petkov Cc: Andrew Morton Cc: Jason Baron Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Steven Rostedt (VMware) Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20180909114252.17575-1-bp@alien8.de Signed-off-by: Ingo Molnar --- diff --git a/kernel/jump_label.c b/kernel/jump_label.c index 01ebdf1f..61d1c01 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); }