# 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-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 bb845a8ed3c69eee961e8d5b2d86f6e2a7e83c6a # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-randconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig KCONFIG_SEED=0x73741BC9 # 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 8 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-randconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe yes: write error # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_powerpc-randconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/drivers/input/joystick/analog.c:176:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp] #warning Precise timer not defined for this architecture. ^ WARNING: vmlinux.o(.text+0x1ffc8): Section mismatch in reference from the function .setup_rfi_flush() to the function .init.text:.ppc64_bolted_size() The function .setup_rfi_flush() references the function __init .ppc64_bolted_size(). This is often because .setup_rfi_flush lacks a __init annotation or the annotation of .ppc64_bolted_size is wrong. WARNING: vmlinux.o(.text+0x1fffc): Section mismatch in reference from the function .setup_rfi_flush() to the function .init.text:.memblock_alloc_base() The function .setup_rfi_flush() references the function __init .memblock_alloc_base(). This is often because .setup_rfi_flush lacks a __init annotation or the annotation of .memblock_alloc_base is wrong. Completed OK # rm -rf /kisskb/build/powerpc-next_powerpc-randconfig_powerpc-5.3 # Build took: 0:02:35.349620