Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5d9a3b1 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge
Browse files

jump_label: use proper atomic_t initializer



ATOMIC_INIT() is the proper thing to use.

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: default avatarJason Baron <jbaron@redhat.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
parent a102a9ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -28,9 +28,9 @@ struct module;
#ifdef HAVE_JUMP_LABEL
#ifdef HAVE_JUMP_LABEL


#ifdef CONFIG_MODULES
#ifdef CONFIG_MODULES
#define JUMP_LABEL_INIT {{ 0 }, NULL, NULL}
#define JUMP_LABEL_INIT {ATOMIC_INIT(0), NULL, NULL}
#else
#else
#define JUMP_LABEL_INIT {{ 0 }, NULL}
#define JUMP_LABEL_INIT {ATOMIC_INIT(0), NULL}
#endif
#endif


static __always_inline bool static_branch(struct jump_label_key *key)
static __always_inline bool static_branch(struct jump_label_key *key)