# git rev-parse -q --verify 2f050d49e589cc23e2aa40628d9154e9569aee43^{commit} 2f050d49e589cc23e2aa40628d9154e9569aee43 already have revision, skipping fetch # git checkout -q -f -B kisskb 2f050d49e589cc23e2aa40628d9154e9569aee43 # git clean -qxdf # < git log -1 # commit 2f050d49e589cc23e2aa40628d9154e9569aee43 # Author: Nathan Chancellor # Date: Sun Aug 11 19:32:15 2019 -0700 # # powerpc: Avoid clang warnings around setjmp and longjmp # # Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when # setjmp is used") disabled -Wbuiltin-requires-header because of a # warning about the setjmp and longjmp declarations. # # r367387 in clang added another diagnostic around this, complaining # that there is no jmp_buf declaration. # # In file included from ../arch/powerpc/xmon/xmon.c:47: # ../arch/powerpc/include/asm/setjmp.h:10:13: error: declaration of # built-in function 'setjmp' requires the declaration of the 'jmp_buf' # type, commonly provided in the header . # [-Werror,-Wincomplete-setjmp-declaration] # extern long setjmp(long *); # ^ # ../arch/powerpc/include/asm/setjmp.h:11:13: error: declaration of # built-in function 'longjmp' requires the declaration of the 'jmp_buf' # type, commonly provided in the header . # [-Werror,-Wincomplete-setjmp-declaration] # extern void longjmp(long *, long); # ^ # 2 errors generated. # # Take the same approach as the above commit by disabling the warning # for the same reason, we provide our own longjmp/setjmp function. # # Cc: stable@vger.kernel.org # 4.19+ # Signed-off-by: Nathan Chancellor # Reviewed-by: Nick Desaulniers # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190812023214.107817-1-natechancellor@gmail.com # < /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 2f050d49e589cc23e2aa40628d9154e9569aee43 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64le_defconfig # Added to kconfig CONFIG_KVM_BOOK3S_64=n # Added to kconfig CONFIG_KVM=n # yes \n | make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: vmlinux.o(.text+0x31d4): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() The function __boot_from_prom() references the function __init prom_init(). This is often because __boot_from_prom lacks a __init annotation or the annotation of prom_init is wrong. WARNING: vmlinux.o(.text+0x33c8): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() The function start_here_common() references the function __init start_kernel(). This is often because start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. Completed OK # rm -rf /kisskb/build/powerpc-next_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 # Build took: 0:01:39.440344