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

Configure Feed

Select the types of activity you want to include in your feed.

s390: Implement ARCH_HAS_CC_CAN_LINK

The generic CC_CAN_LINK detection relies on -m32/-m64 compiler flags.
Some s390 toolchains use -m31 instead but that is not supported in the
kernel.

Make the logic easier to understand and allow the simplification of the
generic CC_CAN_LINK by using a tailored implementation.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

authored by

Thomas Weißschuh and committed by
Heiko Carstens
eb2606bb 71f9bc6f

+9
+9
arch/s390/Kconfig
··· 85 85 select ARCH_ENABLE_MEMORY_HOTREMOVE 86 86 select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 87 87 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE 88 + select ARCH_HAS_CC_CAN_LINK 88 89 select ARCH_HAS_CPU_FINALIZE_INIT 89 90 select ARCH_HAS_CURRENT_STACK_POINTER 90 91 select ARCH_HAS_DEBUG_VIRTUAL ··· 294 293 default 5 295 294 296 295 source "kernel/livepatch/Kconfig" 296 + 297 + config ARCH_CC_CAN_LINK 298 + bool 299 + default $(cc_can_link_user,-m64) 300 + 301 + config ARCH_USERFLAGS 302 + string 303 + default "-m64" 297 304 298 305 config ARCH_SUPPORTS_KEXEC 299 306 def_bool y