# 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 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb3ceb8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562396 Bytes = 5432.03 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562991 Bytes = 5432.61 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5539085 Bytes = 5409.26 kB = 5.28 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563161 Bytes = 5432.77 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563045 Bytes = 5432.66 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562594 Bytes = 5432.22 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563031 Bytes = 5432.65 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562778 Bytes = 5432.40 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563049 Bytes = 5432.67 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4d670) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:11 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562602 Bytes = 5432.23 kB = 5.30 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563259 Bytes = 5432.87 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562909 Bytes = 5432.53 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562742 Bytes = 5432.37 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5563017 Bytes = 5432.63 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562744 Bytes = 5432.37 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gbb845a8 Created: Tue Mar 27 11:36:14 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562988 Bytes = 5432.61 kB = 5.31 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 # Build took: 0:02:01.443676