# git rev-parse -q --verify 5a72345e6a78120368fcc841b570331b6c5a50da^{commit} 5a72345e6a78120368fcc841b570331b6c5a50da already have revision, skipping fetch # git checkout -q -f -B kisskb 5a72345e6a78120368fcc841b570331b6c5a50da # git clean -qxdf # < git log -1 # commit 5a72345e6a78120368fcc841b570331b6c5a50da # Author: Michael Ellerman # Date: Fri Feb 11 17:32:37 2022 +1100 # # powerpc: Fix STACKTRACE=n build # # Our skiroot_defconfig doesn't enable FTRACE, and so doesn't get # STACKTRACE enabled either. That leads to a build failure since commit # 1614b2b11fab ("arch: Make ARCH_STACKWALK independent of STACKTRACE") # made stacktrace.c build even when STACKTRACE=n. # # arch/powerpc/kernel/stacktrace.c: In function ‘handle_backtrace_ipi’: # arch/powerpc/kernel/stacktrace.c:171:2: error: implicit declaration of function ‘nmi_cpu_backtrace’ # 171 | nmi_cpu_backtrace(regs); # | ^~~~~~~~~~~~~~~~~ # arch/powerpc/kernel/stacktrace.c: In function ‘arch_trigger_cpumask_backtrace’: # arch/powerpc/kernel/stacktrace.c:226:2: error: implicit declaration of function ‘nmi_trigger_cpumask_backtrace’ # 226 | nmi_trigger_cpumask_backtrace(mask, exclude_self, raise_backtrace_ipi); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # This happens because our headers haven't defined # arch_trigger_cpumask_backtrace, which causes lib/nmi_backtrace.c not to # build nmi_cpu_backtrace(). # # The code in question doesn't actually depend on STACKTRACE=y, that was # just added because arch_trigger_cpumask_backtrace() lived in # stacktrace.c for convenience. So drop the dependency on # CONFIG_STACKTRACE, that causes lib/nmi_backtrace.c to build # nmi_cpu_backtrace() etc. and fixes the build. # # Fixes: 1614b2b11fab ("arch: Make ARCH_STACKWALK independent of STACKTRACE") # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20220212111349.2806972-1-mpe@ellerman.id.au # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 5a72345e6a78120368fcc841b570331b6c5a50da # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig # 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 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:5806:warning: override: reassigning to symbol MODULE_SIG .config:5808:warning: override: reassigning to symbol PPC64 .config:5809:warning: override: reassigning to symbol PPC_DISABLE_WERROR .config:5811:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ERROR: modpost: "_savegpr1_21" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_savegpr1_23" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_restfpr_24" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_restfpr_30" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_restgpr1_14" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_restgpr1_18" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_savefpr_16" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_savefpr_18" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_savefpr_14" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "_restgpr1_24" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! WARNING: modpost: suppressed 54 unresolved symbol warnings because there were too many) make[2]: *** [/kisskb/src/scripts/Makefile.modpost:134: modules-only.symvers] Error 1 make[2]: *** Deleting file 'modules-only.symvers' make[1]: *** [/kisskb/src/Makefile:1746: modules] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 # Build took: 0:07:44.268526