jump_label: move 'asm goto' support test to Kconfig
Currently, CONFIG_JUMP_LABEL just means "I _want_ to use jump label". The jump label is controlled by HAVE_JUMP_LABEL, which is defined like this: #if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL) # define HAVE_JUMP_LABEL #endif We can improve this by testing 'asm goto' support in Kconfig, then make JUMP_LABEL depend on CC_HAS_ASM_GOTO. Ugly #ifdef HAVE_JUMP_LABEL will go away, and CONFIG_JUMP_LABEL will match to the real kernel capability. Signed-off-by:Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Tested-by:
Sedat Dilek <sedat.dilek@gmail.com>
Showing
- Makefile 0 additions, 7 deletionsMakefile
- arch/Kconfig 1 addition, 0 deletionsarch/Kconfig
- arch/arm/kernel/jump_label.c 0 additions, 4 deletionsarch/arm/kernel/jump_label.c
- arch/arm64/kernel/jump_label.c 0 additions, 4 deletionsarch/arm64/kernel/jump_label.c
- arch/mips/kernel/jump_label.c 0 additions, 4 deletionsarch/mips/kernel/jump_label.c
- arch/powerpc/include/asm/asm-prototypes.h 1 addition, 1 deletionarch/powerpc/include/asm/asm-prototypes.h
- arch/powerpc/kernel/jump_label.c 0 additions, 2 deletionsarch/powerpc/kernel/jump_label.c
- arch/powerpc/platforms/powernv/opal-tracepoints.c 1 addition, 1 deletionarch/powerpc/platforms/powernv/opal-tracepoints.c
- arch/powerpc/platforms/powernv/opal-wrappers.S 1 addition, 1 deletionarch/powerpc/platforms/powernv/opal-wrappers.S
- arch/powerpc/platforms/pseries/hvCall.S 2 additions, 2 deletionsarch/powerpc/platforms/pseries/hvCall.S
- arch/powerpc/platforms/pseries/lpar.c 1 addition, 1 deletionarch/powerpc/platforms/pseries/lpar.c
- arch/s390/kernel/Makefile 2 additions, 1 deletionarch/s390/kernel/Makefile
- arch/s390/kernel/jump_label.c 0 additions, 4 deletionsarch/s390/kernel/jump_label.c
- arch/sparc/kernel/Makefile 1 addition, 1 deletionarch/sparc/kernel/Makefile
- arch/sparc/kernel/jump_label.c 0 additions, 4 deletionsarch/sparc/kernel/jump_label.c
- arch/x86/Makefile 1 addition, 1 deletionarch/x86/Makefile
- arch/x86/entry/calling.h 1 addition, 1 deletionarch/x86/entry/calling.h
- arch/x86/include/asm/cpufeature.h 1 addition, 1 deletionarch/x86/include/asm/cpufeature.h
- arch/x86/include/asm/jump_label.h 0 additions, 13 deletionsarch/x86/include/asm/jump_label.h
- arch/x86/include/asm/rmwcc.h 3 additions, 3 deletionsarch/x86/include/asm/rmwcc.h
Please register or sign in to comment