# git rev-parse -q --verify 97e45d469eb180a7bd2809e4e079331552c73e42^{commit} 97e45d469eb180a7bd2809e4e079331552c73e42 already have revision, skipping fetch # git checkout -q -f -B kisskb 97e45d469eb180a7bd2809e4e079331552c73e42 # git clean -qxdf # < git log -1 # commit 97e45d469eb180a7bd2809e4e079331552c73e42 # Author: Randy Dunlap # Date: Sat Feb 4 09:22:06 2023 -0800 # # powerpc/kexec_file: fix implicit decl error # # kexec (PPC64) code calls memory_hotplug_max(). Add the header # declaration for it from . Using does not # work since the #include for depends on CONFIG_NUMA=y, # which is not always set. # # Fixes this build error/warning: # # arch/powerpc/kexec/file_load_64.c: In function 'kexec_extra_fdt_size_ppc64': # arch/powerpc/kexec/file_load_64.c:993:33: error: implicit declaration of function 'memory_hotplug_max' # 993 | usm_entries = ((memory_hotplug_max() / drmem_lmb_size()) + # | ^~~~~~~~~~~~~~~~~~ # # Fixes: fc546faa5595 ("powerpc/kexec_file: Count hot-pluggable memory in FDT estimate") # Signed-off-by: Randy Dunlap # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20230204172206.7662-1-rdunlap@infradead.org # < /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 97e45d469eb180a7bd2809e4e079331552c73e42 # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pseries_le_defconfig+NO_NUMA_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pseries_le_defconfig # Added to kconfig CONFIG_NUMA=n # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pseries_le_defconfig+NO_NUMA_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/powerpc-fixes_pseries_le_defconfig+NO_NUMA_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/powerpc-fixes_pseries_le_defconfig+NO_NUMA_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- arch/powerpc/kernel/head_64.o: warning: objtool: end_first_256B(): can't find starting instruction arch/powerpc/kernel/optprobes_head.o: warning: objtool: optprobe_template_end(): can't find starting instruction Completed OK # rm -rf /kisskb/build/powerpc-fixes_pseries_le_defconfig+NO_NUMA_powerpc-gcc5 # Build took: 0:03:05.359460