# 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-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 97e45d469eb180a7bd2809e4e079331552c73e42 # < make -s -j 160 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- x86_64_defconfig # < make -s -j 160 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- help # make -s -j 160 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- olddefconfig # make -s -j 160 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.5.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_x86_64_defconfig_x86_64-gcc8 # Build took: 0:02:52.313980