Commit d5d9a3b1 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge

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
...@@ -28,9 +28,9 @@ struct module; ...@@ -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)
......
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