# git rev-parse -q --verify 5270316c9fec8cc99aa0e0a258509c5c7f789d12^{commit} 5270316c9fec8cc99aa0e0a258509c5c7f789d12 already have revision, skipping fetch # git checkout -q -f -B kisskb 5270316c9fec8cc99aa0e0a258509c5c7f789d12 # git clean -qxdf # < git log -1 # commit 5270316c9fec8cc99aa0e0a258509c5c7f789d12 # Author: Petr Pavlu # Date: Thu Feb 22 14:35:00 2024 +0100 # # kbuild: Use -fmin-function-alignment when available # # GCC recently added option -fmin-function-alignment, which should appear # in GCC 14. Unlike -falign-functions, this option causes all functions to # be aligned at the specified value, including the cold ones. # # In particular, when an arm64 kernel is built with # DYNAMIC_FTRACE_WITH_CALL_OPS=y, the 8-byte function alignment is # required for correct functionality. This was done by -falign-functions=8 # and having workarounds in the kernel to force the compiler to follow # this alignment. The new -fmin-function-alignment option directly # guarantees it. # # Detect availability of -fmin-function-alignment and use it instead of # -falign-functions when present. Introduce CC_HAS_SANE_FUNCTION_ALIGNMENT # and enable __cold to work as expected when it is set. # # Signed-off-by: Petr Pavlu # Reviewed-by: Nathan Chancellor # Acked-by: Mark Rutland # Signed-off-by: Masahiro Yamada # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 5270316c9fec8cc99aa0e0a258509c5c7f789d12 # make -s -j 40 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- x86_64_defconfig # < make -s -j 40 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 40 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 40 ARCH=x86 O=/kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/kbuild_x86_64_defconfig_x86_64-gcc8 # Build took: 0:01:32.861990