# 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-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.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-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig KCONFIG_SEED=0x68452F5D # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # yes \n | make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/kernel/syscall_64.c: In function 'syscall_exit_prepare': /kisskb/src/arch/powerpc/kernel/syscall_64.c:161:2: error: implicit declaration of function '__mtmsrd'; did you mean '__memset'? [-Werror=implicit-function-declaration] __mtmsrd(0, 1); /* Disable MSR_EE and MSR_RI */ ^~~~~~~~ __memset cc1: some warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:274: arch/powerpc/kernel/syscall_64.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:490: arch/powerpc/kernel] Error 2 make[1]: *** [/kisskb/src/Makefile:1079: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/include/linux/kernel.h:15, from /kisskb/src/include/asm-generic/bug.h:18, from /kisskb/src/arch/powerpc/include/asm/bug.h:120, from /kisskb/src/include/linux/bug.h:5, from /kisskb/src/include/linux/scatterlist.h:7, from /kisskb/src/drivers/scsi/libsas/sas_discover.c:9: /kisskb/src/drivers/scsi/libsas/sas_discover.c: In function 'sas_discover_domain': /kisskb/src/include/linux/printk.h:309:2: warning: this statement may fall through [-Wimplicit-fallthrough=] printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/scsi/libsas/sas_discover.c:459:3: note: in expansion of macro 'pr_notice' pr_notice("ATA device seen but CONFIG_SCSI_SAS_ATA=N so cannot attach\n"); ^~~~~~~~~ /kisskb/src/drivers/scsi/libsas/sas_discover.c:462:2: note: here default: ^~~~~~~ In file included from /kisskb/src/include/linux/acpi.h:15, from /kisskb/src/include/linux/i2c.h:13, from /kisskb/src/include/uapi/linux/fb.h:6, from /kisskb/src/include/linux/fb.h:6, from /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c:20: /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c: In function 'fsl_diu_ioctl': /kisskb/src/include/linux/device.h:1501:2: warning: this statement may fall through [-Wimplicit-fallthrough=] _dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c:1287:3: note: in expansion of macro 'dev_warn' dev_warn(info->dev, ^~~~~~~~ /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c:1290:2: note: here case MFB_SET_PIXFMT: ^~~~ In file included from /kisskb/src/include/linux/acpi.h:15, from /kisskb/src/include/linux/i2c.h:13, from /kisskb/src/include/uapi/linux/fb.h:6, from /kisskb/src/include/linux/fb.h:6, from /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c:20: /kisskb/src/include/linux/device.h:1501:2: warning: this statement may fall through [-Wimplicit-fallthrough=] _dev_warn(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c:1296:3: note: in expansion of macro 'dev_warn' dev_warn(info->dev, ^~~~~~~~ /kisskb/src/drivers/video/fbdev/fsl-diu-fb.c:1299:2: note: here case MFB_GET_PIXFMT: ^~~~ make: *** [Makefile:179: sub-make] Error 2 Command 'make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc8 # Build took: 0:02:02.390443