Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/jump_label: use HAVE_JUMP_LABEL?

CONFIG_JUMP_LABEL doesn't ensure HAVE_JUMP_LABEL, if it
is not the case use maintainers's own mutex to guard
the modification of global values.

Signed-off-by: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Zhouyi Zhou and committed by
Michael Ellerman
d4fe0965 22e55fcf

+2 -2
+1 -1
arch/powerpc/platforms/powernv/opal-tracepoints.c
··· 2 2 #include <linux/jump_label.h> 3 3 #include <asm/trace.h> 4 4 5 - #ifdef CONFIG_JUMP_LABEL 5 + #ifdef HAVE_JUMP_LABEL 6 6 struct static_key opal_tracepoint_key = STATIC_KEY_INIT; 7 7 8 8 void opal_tracepoint_regfunc(void)
+1 -1
arch/powerpc/platforms/pseries/lpar.c
··· 640 640 #endif 641 641 642 642 #ifdef CONFIG_TRACEPOINTS 643 - #ifdef CONFIG_JUMP_LABEL 643 + #ifdef HAVE_JUMP_LABEL 644 644 struct static_key hcall_tracepoint_key = STATIC_KEY_INIT; 645 645 646 646 void hcall_tracepoint_regfunc(void)