# 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-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 5270316c9fec8cc99aa0e0a258509c5c7f789d12 # make -s -j 160 ARCH=powerpc O=/kisskb/build/kbuild_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- powernv_defconfig # < make -s -j 160 ARCH=powerpc O=/kisskb/build/kbuild_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/kbuild_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/kbuild_powernv_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/kbuild_powernv_defconfig_powerpc-gcc5 # Build took: 0:02:33.283086