# git rev-parse -q --verify bad32f8b971407f2f651b9ceedd2093ce478041f^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/linuxppc/linux.git next-test # git rev-parse -q --verify bad32f8b971407f2f651b9ceedd2093ce478041f^{commit} bad32f8b971407f2f651b9ceedd2093ce478041f # git checkout -q -f -B kisskb bad32f8b971407f2f651b9ceedd2093ce478041f # git clean -qxdf # < git log -1 # commit bad32f8b971407f2f651b9ceedd2093ce478041f # Author: Mauricio Faria de Oliveira # Date: Fri Mar 9 17:45:58 2018 -0300 # # powerpc/mm: Fix section mismatch warning in stop_machine_change_mapping() # # Fix the warning messages for stop_machine_change_mapping(), and a number # of other affected functions in its call chain. # # All modified functions are under CONFIG_MEMORY_HOTPLUG, so __meminit # is okay (keeps them / does not discard them). # # Boot-tested on powernv/power9/radix-mmu and pseries/power8/hash-mmu. # # $ make -j$(nproc) CONFIG_DEBUG_SECTION_MISMATCH=y vmlinux # ... # MODPOST vmlinux.o # WARNING: vmlinux.o(.text+0x6b130): Section mismatch in reference from the function stop_machine_change_mapping() to the function .meminit.text:create_physical_mapping() # The function stop_machine_change_mapping() references # the function __meminit create_physical_mapping(). # This is often because stop_machine_change_mapping lacks a __meminit # annotation or the annotation of create_physical_mapping is wrong. # # WARNING: vmlinux.o(.text+0x6b13c): Section mismatch in reference from the function stop_machine_change_mapping() to the function .meminit.text:create_physical_mapping() # The function stop_machine_change_mapping() references # the function __meminit create_physical_mapping(). # This is often because stop_machine_change_mapping lacks a __meminit # annotation or the annotation of create_physical_mapping is wrong. # ... # # Signed-off-by: Mauricio Faria de Oliveira # Acked-by: Balbir Singh # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 bad32f8b971407f2f651b9ceedd2093ce478041f # < make -s -j 20 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_defconfig # make -s -j 20 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/arch/powerpc/kernel/machine_kexec.c: In function 'machine_kexec': /kisskb/src/arch/powerpc/kernel/machine_kexec.c:98:2: error: implicit declaration of function 'get_paca' [-Werror=implicit-function-declaration] /kisskb/src/arch/powerpc/kernel/machine_kexec.c:98:12: error: invalid type argument of '->' (have 'int') /kisskb/src/arch/powerpc/kernel/machine_kexec.c:105:12: error: invalid type argument of '->' (have 'int') cc1: all warnings being treated as errors /kisskb/src/scripts/Makefile.build:324: recipe for target 'arch/powerpc/kernel/machine_kexec.o' failed make[2]: *** [arch/powerpc/kernel/machine_kexec.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/Makefile:1051: recipe for target 'arch/powerpc/kernel' failed make[1]: *** [arch/powerpc/kernel] Error 2 make[1]: *** Waiting for unfinished jobs.... /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1268:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1439:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:803:56: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:800:54: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:251:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:231:19: note: 'i' was declared here Makefile:146: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 Command 'make -s -j 20 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc # Build took: 0:01:31.597365