# git rev-parse -q --verify bad32f8b971407f2f651b9ceedd2093ce478041f^{commit} bad32f8b971407f2f651b9ceedd2093ce478041f already have revision, skipping fetch # 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 40 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_pcm030_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 52xx/pcm030_defconfig # make -s -j 40 ARCH=powerpc O=/kisskb/build/powerpc-next_52xx_pcm030_defconfig_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/rcu/srcutree.c: In function 'init_srcu_struct_fields': /kisskb/src/kernel/rcu/srcutree.c:127:33: warning: 'levelspread[]' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/rcu/srcutree.c:94:6: note: 'levelspread[]' was declared here INFO: Uncompressed kernel (size 0x475c44) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.16.0-rc4trunk+ Created: Mon Mar 26 22:18:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2258115 Bytes = 2205.19 kB = 2.15 MB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_52xx_pcm030_defconfig_powerpc # Build took: 0:00:21.693811