# git rev-parse -q --verify 76c3dc8f2af8af627b36113362cd2fb3b8545e25^{commit} 76c3dc8f2af8af627b36113362cd2fb3b8545e25 already have revision, skipping fetch # git checkout -q -f -B kisskb 76c3dc8f2af8af627b36113362cd2fb3b8545e25 # git clean -qxdf # git log -1 commit 76c3dc8f2af8af627b36113362cd2fb3b8545e25 Author: Benjamin Herrenschmidt Date: Thu Jun 30 13:46:39 2016 +1000 powerpc: Fix build with CONFIG_MEMORY_HOTPLUG on some configs For memory hotplug to work, the MMU code needs to provide the functions create_section_mapping() and remove_section_mapping() to respectively map and unmap portions of the linear mapping. At the moment only hash64 provides these, so we provide weak stubs that just error out. This fixes the build with configurations such as 64-bit BookE with CONFIG_MEMORY_HOTPLUG enabled. Signed-off-by: Benjamin Herrenschmidt # < /opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux-gcc --version # < git log --format=%s --max-count=1 76c3dc8f2af8af627b36113362cd2fb3b8545e25 # < make -j 8 ARCH=powerpc O=/home/kisskb/slave/build/mpe_powernv_defconfig_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- powernv_defconfig # make -j 8 ARCH=powerpc O=/home/kisskb/slave/build/mpe_powernv_defconfig_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- make[1]: Entering directory '/home/kisskb/slave/build/mpe_powernv_defconfig_ppc64le' GEN ./Makefile scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.release GEN ./Makefile WRAP arch/powerpc/include/generated/asm/div64.h WRAP arch/powerpc/include/generated/asm/irq_regs.h WRAP arch/powerpc/include/generated/asm/irq_work.h WRAP arch/powerpc/include/generated/asm/local64.h WRAP arch/powerpc/include/generated/asm/mcs_spinlock.h WRAP arch/powerpc/include/generated/asm/preempt.h WRAP arch/powerpc/include/generated/asm/rwsem.h WRAP arch/powerpc/include/generated/asm/vtime.h WRAP arch/powerpc/include/generated/asm/clkdev.h CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h HOSTCC scripts/basic/bin2c UPD include/config/kernel.release Using /home/kisskb/slave/src as source for kernel CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h HOSTCC scripts/kallsyms HOSTCC scripts/dtc/dtc.o HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/pnmtologo CC scripts/mod/empty.o CC kernel/bounds.s HOSTCC scripts/mod/mk_elfconfig CHK include/generated/timeconst.h UPD include/generated/timeconst.h CHK include/generated/bounds.h UPD include/generated/bounds.h CC scripts/mod/devicetable-offsets.s CC arch/powerpc/kernel/asm-offsets.s MKELF scripts/mod/elfconfig.h GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/sumversion.o HOSTCC scripts/conmakehash HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o SHIPPED scripts/genksyms/parse.tab.c HOSTCC scripts/dtc/livetree.o SHIPPED scripts/genksyms/lex.lex.c SHIPPED scripts/genksyms/keywords.hash.c SHIPPED scripts/genksyms/parse.tab.h HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/dtc/srcpos.o CHK include/generated/asm-offsets.h UPD include/generated/asm-offsets.h CALL /home/kisskb/slave/src/scripts/checksyscalls.sh HOSTCC scripts/mod/file2alias.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o SHIPPED scripts/dtc/dtc-lexer.lex.c SHIPPED scripts/dtc/dtc-parser.tab.h SHIPPED scripts/dtc/dtc-parser.tab.c HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/genksyms/genksyms HOSTLD scripts/dtc/dtc HOSTLD scripts/mod/modpost HOSTCC usr/gen_init_cpio CC init/main.o CHK include/generated/compile.h CC init/do_mounts.o CC init/do_mounts_rd.o UPD include/generated/compile.h CC arch/powerpc/mm/fault.o CC arch/powerpc/sysdev/msi_bitmap.o AS arch/powerpc/lib/string.o CC arch/powerpc/lib/alloc.o CC arch/powerpc/kernel/cputable.o GEN usr/initramfs_data.cpio.gz AS arch/powerpc/lib/crtsavres.o AS usr/initramfs_data.o CC arch/powerpc/lib/ppc_ksyms.o LD usr/built-in.o CC arch/powerpc/lib/code-patching.o CC arch/powerpc/kernel/ptrace.o CC arch/powerpc/mm/mem.o CC arch/powerpc/sysdev/scom.o CC arch/powerpc/sysdev/xics/xics-common.o CC arch/powerpc/kernel/syscalls.o /home/kisskb/slave/src/arch/powerpc/mm/mem.c: In function 'create_section_mapping': /home/kisskb/slave/src/arch/powerpc/mm/mem.c:119:1: error: parameter name omitted int __weak create_section_mapping(unsigned long, unsigned long) ^ /home/kisskb/slave/src/arch/powerpc/mm/mem.c:119:1: error: parameter name omitted /home/kisskb/slave/src/arch/powerpc/mm/mem.c: In function 'remove_section_mapping': /home/kisskb/slave/src/arch/powerpc/mm/mem.c:124:1: error: parameter name omitted int __weak remove_section_mapping(unsigned long, unsigned long) ^ /home/kisskb/slave/src/arch/powerpc/mm/mem.c:124:1: error: parameter name omitted CC arch/powerpc/lib/feature-fixups.o /home/kisskb/slave/src/scripts/Makefile.build:289: recipe for target 'arch/powerpc/mm/mem.o' failed make[2]: *** [arch/powerpc/mm/mem.o] Error 1 /home/kisskb/slave/src/Makefile:985: recipe for target 'arch/powerpc/mm' failed make[1]: *** [arch/powerpc/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC init/do_mounts_initrd.o CC init/do_mounts_md.o CC arch/powerpc/sysdev/xics/icp-native.o CC arch/powerpc/sysdev/xics/ics-opal.o CC init/initramfs.o CC arch/powerpc/lib/sstep.o CC arch/powerpc/kernel/irq.o CC arch/powerpc/kernel/align.o CC init/init_task.o AS arch/powerpc/lib/ldstfp.o CC arch/powerpc/kernel/signal_32.o CC init/version.o LD arch/powerpc/sysdev/xics/built-in.o LD arch/powerpc/sysdev/built-in.o LD init/mounts.o AS arch/powerpc/lib/feature-fixups-test.o CC arch/powerpc/kernel/pmc.o CC arch/powerpc/kernel/vdso.o CC arch/powerpc/kernel/process.o CPP arch/powerpc/kernel/systbl_chk.i CC arch/powerpc/lib/xor_vmx.o AS arch/powerpc/lib/copypage_64.o AS arch/powerpc/lib/copyuser_64.o CC arch/powerpc/lib/usercopy_64.o LD init/built-in.o AS arch/powerpc/lib/mem_64.o CC arch/powerpc/kernel/idle.o AS arch/powerpc/lib/hweight_64.o AS arch/powerpc/lib/copyuser_power7.o AS arch/powerpc/lib/string_64.o AS arch/powerpc/lib/copypage_power7.o AS arch/powerpc/lib/memcpy_power7.o AS arch/powerpc/lib/memcpy_64.o AS arch/powerpc/lib/memcmp_64.o CC arch/powerpc/lib/locks.o CC arch/powerpc/kernel/signal.o CC arch/powerpc/lib/vmx-helper.o CC arch/powerpc/kernel/sysfs.o CC arch/powerpc/kernel/cacheinfo.o CC arch/powerpc/kernel/time.o CC arch/powerpc/kernel/prom.o LD arch/powerpc/lib/built-in.o CC arch/powerpc/kernel/traps.o CC arch/powerpc/kernel/setup-common.o CC arch/powerpc/kernel/udbg.o AS arch/powerpc/kernel/misc.o CC arch/powerpc/kernel/io.o CC arch/powerpc/kernel/dma.o AS arch/powerpc/kernel/misc_64.o CC arch/powerpc/kernel/of_platform.o CC arch/powerpc/kernel/prom_parse.o CC arch/powerpc/kernel/setup_64.o CC arch/powerpc/kernel/sys_ppc32.o CC arch/powerpc/kernel/signal_64.o CC arch/powerpc/kernel/ptrace32.o CC arch/powerpc/kernel/paca.o CC arch/powerpc/kernel/nvram_64.o CC arch/powerpc/kernel/firmware.o CC arch/powerpc/kernel/hw_breakpoint.o AS arch/powerpc/kernel/cpu_setup_ppc970.o AS arch/powerpc/kernel/cpu_setup_pa6t.o AS arch/powerpc/kernel/cpu_setup_power.o CC arch/powerpc/kernel/mce.o CC arch/powerpc/kernel/mce_power.o LDS arch/powerpc/kernel/vdso64/vdso64.lds VDSO64A arch/powerpc/kernel/vdso64/sigtramp.o CC arch/powerpc/kernel/vecemu.o AS arch/powerpc/kernel/idle_power7.o VDSO64A arch/powerpc/kernel/vdso64/gettimeofday.o CC arch/powerpc/kernel/proc_powerpc.o VDSO64A arch/powerpc/kernel/vdso64/datapage.o VDSO64A arch/powerpc/kernel/vdso64/cacheflush.o VDSO64A arch/powerpc/kernel/vdso64/note.o CC arch/powerpc/kernel/eeh.o VDSO64A arch/powerpc/kernel/vdso64/getcpu.o VDSO64L arch/powerpc/kernel/vdso64/vdso64.so.dbg OBJCOPY arch/powerpc/kernel/vdso64/vdso64.so CC arch/powerpc/kernel/eeh_pe.o CC arch/powerpc/kernel/eeh_dev.o AS arch/powerpc/kernel/vdso64/vdso64_wrapper.o LD arch/powerpc/kernel/vdso64/built-in.o CC arch/powerpc/kernel/eeh_cache.o CC arch/powerpc/kernel/eeh_driver.o CC arch/powerpc/kernel/eeh_event.o CC arch/powerpc/kernel/eeh_sysfs.o CC arch/powerpc/kernel/module.o CC arch/powerpc/kernel/module_64.o CC arch/powerpc/kernel/dbell.o CC arch/powerpc/kernel/jump_label.o CC arch/powerpc/kernel/dma-iommu.o CC arch/powerpc/kernel/iommu.o CC arch/powerpc/kernel/ppc_ksyms.o CC arch/powerpc/kernel/smp.o CC arch/powerpc/kernel/kprobes.o CC arch/powerpc/kernel/legacy_serial.o CC arch/powerpc/kernel/udbg_16550.o CC arch/powerpc/kernel/stacktrace.o CC arch/powerpc/kernel/pci_64.o CC arch/powerpc/kernel/pci_dn.o CC arch/powerpc/kernel/pci-hotplug.o CC arch/powerpc/kernel/isa-bridge.o CC arch/powerpc/kernel/pci-common.o CC arch/powerpc/kernel/pci_of_scan.o CC arch/powerpc/kernel/msi.o CC arch/powerpc/kernel/machine_kexec.o CC arch/powerpc/kernel/crash.o CC arch/powerpc/kernel/machine_kexec_64.o CC arch/powerpc/kernel/audit.o CC arch/powerpc/kernel/trace_clock.o CC arch/powerpc/kernel/compat_audit.o AS arch/powerpc/kernel/tm.o AS arch/powerpc/kernel/ppc_save_regs.o AS arch/powerpc/kernel/head_64.o LDS arch/powerpc/kernel/vmlinux.lds AS arch/powerpc/kernel/fpu.o AS arch/powerpc/kernel/vector.o AS arch/powerpc/kernel/entry_64.o CALL /home/kisskb/slave/src/arch/powerpc/kernel/systbl_chk.sh AS arch/powerpc/kernel/systbl.o LD arch/powerpc/kernel/built-in.o make[1]: Leaving directory '/home/kisskb/slave/build/mpe_powernv_defconfig_ppc64le' Makefile:150: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -j 8 ARCH=powerpc O=/home/kisskb/slave/build/mpe_powernv_defconfig_ppc64le CROSS_COMPILE=/opt/cross/kisskb/gcc-5.2.0-nolibc/powerpc64le-linux/bin/powerpc64le-linux- ' returned non-zero exit status 2 # rm -rf /home/kisskb/slave/build/mpe_powernv_defconfig_ppc64le # Build took: 0:00:13.476089