# git rev-parse -q --verify bb845a8ed3c69eee961e8d5b2d86f6e2a7e83c6a^{commit} bb845a8ed3c69eee961e8d5b2d86f6e2a7e83c6a already have revision, skipping fetch # git checkout -q -f -B kisskb bb845a8ed3c69eee961e8d5b2d86f6e2a7e83c6a # git clean -qxdf # < git log -1 # commit bb845a8ed3c69eee961e8d5b2d86f6e2a7e83c6a # 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 bb845a8ed3c69eee961e8d5b2d86f6e2a7e83c6a # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- randconfig KCONFIG_SEED=0x2D12F0D0 warning: (E500 && PPC_FSL_BOOK3E) selects FSL_EMB_PERFMON which has unmet direct dependencies (E500 || PPC_83xx) # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig # yes \n | make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /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/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/fs/f2fs/file.c: In function 'f2fs_precache_extents': /kisskb/src/fs/f2fs/file.c:2786:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec': /kisskb/src/net/bridge/br_netlink.c:635:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_fence': /kisskb/src/drivers/dma-buf/reservation.c:207:2: warning: 'k' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c:160:17: note: 'k' was declared here /kisskb/src/drivers/lightnvm/core.c: In function 'nvm_ioctl_dev_create.isra.14': /kisskb/src/include/linux/string.h:266:29: warning: array subscript is above array bounds [-Warray-bounds] /kisskb/src/drivers/input/joystick/analog.c:176:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] /kisskb/src/drivers/input/rmi4/rmi_f11.c: In function 'rmi_f11_attention': /kisskb/src/drivers/input/rmi4/rmi_f11.c:631:3: warning: 'abs_fingers' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/input/rmi4/rmi_f11.c:580:6: note: 'abs_fingers' was declared here /kisskb/src/drivers/gpu/drm/amd/amdgpu/soc15.c: In function 'soc15_set_ip_blocks': /kisskb/src/drivers/gpu/drm/amd/amdgpu/soc15.c:549:3: warning: #warning "Enable CONFIG_DRM_AMD_DC for display support on SOC15." [-Wcpp] /kisskb/src/drivers/gpu/drm/amd/amdgpu/soc15.c:568:3: warning: #warning "Enable CONFIG_DRM_AMD_DC for display support on SOC15." [-Wcpp] /kisskb/src/drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c: In function 'gk104_top_oneinit': /kisskb/src/drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c:101:1: warning: 'inst' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c:101:1: warning: 'type' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c: In function '__mlx5_create_flow_table': /kisskb/src/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c:867:5: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c:844:6: note: 'err' was declared here /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c: In function 'nv50_disp_atomic_commit_tail': /kisskb/src/arch/powerpc/include/asm/io.h:178:1: warning: 'b' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c:1813:18: note: 'b' was declared here /kisskb/src/arch/powerpc/include/asm/io.h:178:1: warning: 'g' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c:1813:15: note: 'g' was declared here /kisskb/src/arch/powerpc/include/asm/io.h:178:1: warning: 'r' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c:1813:12: note: 'r' was declared here WARNING: modpost: Found 2 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' Completed OK # rm -rf /kisskb/build/powerpc-next_powerpc-randconfig_powerpc # Build took: 0:03:24.009324