jump_label: use proper atomic_t initializer
ATOMIC_INIT() is the proper thing to use. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Acked-by: Jason Baron <jbaron@redhat.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
This commit is contained in:
Родитель
a102a9ece5
Коммит
d5d9a3b12a
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче