# 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 <rdunlap@infradead.org>
# 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 <asm/mmzone.h>. Using <linux/mmzone.h> does not
#     work since the #include for <asm/mmzone.h> 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 <rdunlap@infradead.org>
#     Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
#     Link: https://lore.kernel.org/r/20230204172206.7662-1-rdunlap@infradead.org
# < /opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version
# < /opt/cross/kisskb/korg/gcc-11.1.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_powernv_defconfig+STRICT_RWX_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-  powernv_defconfig
# Added to kconfig CONFIG_RELOCATABLE=n
# Added to kconfig CONFIG_STRICT_KERNEL_RWX=y
# < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+STRICT_RWX_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-  help
# make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+STRICT_RWX_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-  olddefconfig
.config:4237:warning: override: reassigning to symbol RELOCATABLE
# make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+STRICT_RWX_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.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_powernv_defconfig+STRICT_RWX_powerpc-gcc11
# Build took: 0:08:30.206486