# git rev-parse -q --verify 8dcd71b45df34d9b903450fab147ee8c1e6c16b5^{commit} 8dcd71b45df34d9b903450fab147ee8c1e6c16b5 already have revision, skipping fetch # git checkout -q -f -B kisskb 8dcd71b45df34d9b903450fab147ee8c1e6c16b5 # git clean -qxdf # < git log -1 # commit 8dcd71b45df34d9b903450fab147ee8c1e6c16b5 # Author: Nathan Chancellor # Date: Mon Nov 18 21:57:12 2019 -0700 # # powerpc/prom_init: Use -ffreestanding to avoid a reference to bcmp # # LLVM revision r374662 gives LLVM the ability to convert certain loops # into a reference to bcmp as an optimization; this breaks # prom_init_check.sh: # # CALL arch/powerpc/kernel/prom_init_check.sh # Error: External symbol 'bcmp' referenced from prom_init.c # make[2]: *** [arch/powerpc/kernel/Makefile:196: prom_init_check] Error 1 # # bcmp is defined in lib/string.c as a wrapper for memcmp so this could # be added to the whitelist. However, commit # 450e7dd4001f ("powerpc/prom_init: don't use string functions from # lib/") copied memcmp as prom_memcmp to avoid KASAN instrumentation so # having bcmp be resolved to regular memcmp would break that assumption. # Furthermore, because the compiler is the one that inserted bcmp, we # cannot provide something like prom_bcmp. # # To prevent LLVM from being clever with optimizations like this, use # -ffreestanding to tell LLVM we are not hosted so it is not free to # make transformations like this. # # Reviewed-by: Nick Desaulneris # Signed-off-by: Nathan Chancellor # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20191119045712.39633-4-natechancellor@gmail.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 8dcd71b45df34d9b903450fab147ee8c1e6c16b5 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11: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:78: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)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcd5b5c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcc5328) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6293230 Bytes = 6145.73 KiB = 6.00 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323770 Bytes = 6175.56 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323569 Bytes = 6175.36 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323352 Bytes = 6175.15 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:52 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6324510 Bytes = 6176.28 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:52 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323412 Bytes = 6175.21 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6324470 Bytes = 6176.24 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323549 Bytes = 6175.34 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323387 Bytes = 6175.18 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323395 Bytes = 6175.19 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323532 Bytes = 6175.32 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323520 Bytes = 6175.31 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323495 Bytes = 6175.29 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323500 Bytes = 6175.29 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323588 Bytes = 6175.38 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.4.0-rc2-g8dcd71b45df3 Created: Tue Nov 26 00:36:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6323388 Bytes = 6175.18 KiB = 6.03 MiB Load Address: 00d00000 Entry Point: 00d00314 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:02:03.227058