# git rev-parse -q --verify df85055f4421b6d147cca0ac6df8535392128775^{commit} df85055f4421b6d147cca0ac6df8535392128775 already have revision, skipping fetch # git checkout -q -f -B kisskb df85055f4421b6d147cca0ac6df8535392128775 # git clean -qxdf # < git log -1 # commit df85055f4421b6d147cca0ac6df8535392128775 # Author: Nathan Chancellor # Date: Fri May 28 11:27:52 2021 -0700 # # powerpc/barrier: Avoid collision with clang's __lwsync macro # # A change in clang 13 results in the __lwsync macro being defined as # __builtin_ppc_lwsync, which emits 'lwsync' or 'msync' depending on what # the target supports. This breaks the build because of -Werror in # arch/powerpc, along with thousands of warnings: # # In file included from arch/powerpc/kernel/pmc.c:12: # In file included from include/linux/bug.h:5: # In file included from arch/powerpc/include/asm/bug.h:109: # In file included from include/asm-generic/bug.h:20: # In file included from include/linux/kernel.h:12: # In file included from include/linux/bitops.h:32: # In file included from arch/powerpc/include/asm/bitops.h:62: # arch/powerpc/include/asm/barrier.h:49:9: error: '__lwsync' macro redefined [-Werror,-Wmacro-redefined] # #define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory") # ^ # :308:9: note: previous definition is here # #define __lwsync __builtin_ppc_lwsync # ^ # 1 error generated. # # Undefine this macro so that the runtime patching introduced by # commit 2d1b2027626d ("powerpc: Fixup lwsync at runtime") continues to # work properly with clang and the build no longer breaks. # # Cc: stable@vger.kernel.org # Signed-off-by: Nathan Chancellor # Reviewed-by: Nick Desaulniers # Signed-off-by: Michael Ellerman # Link: https://github.com/ClangBuiltLinux/linux/issues/1386 # Link: https://github.com/llvm/llvm-project/commit/62b5df7fe2b3fda1772befeda15598fbef96a614 # Link: https://lore.kernel.org/r/20210528182752.1852002-1-nathan@kernel.org # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 df85055f4421b6d147cca0ac6df8535392128775 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4215:warning: override: reassigning to symbol PPC_E500MC .config:4216:warning: override: reassigning to symbol VIRTUALIZATION # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, 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] 22 | #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' 78 | # 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' 139 | 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 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf68160) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) INFO: Uncompressed kernel (size 0xf57a34) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x1000000) Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:15 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139282 Bytes = 6971.96 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:15 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7104691 Bytes = 6938.17 KiB = 6.78 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:16 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139694 Bytes = 6972.36 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:15 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139782 Bytes = 6972.44 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:16 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139312 Bytes = 6971.98 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:17 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139300 Bytes = 6971.97 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139525 Bytes = 6972.19 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:18 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139603 Bytes = 6972.27 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139483 Bytes = 6972.15 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7140215 Bytes = 6972.87 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139606 Bytes = 6972.27 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139301 Bytes = 6971.97 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7140145 Bytes = 6972.80 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139557 Bytes = 6972.22 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 0100031c Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139462 Bytes = 6972.13 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Image Name: Linux-5.13.0-rc2-112622-gdf85055 Created: Mon Jun 7 03:37:19 2021 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 7139601 Bytes = 6972.27 KiB = 6.81 MiB Load Address: 01000000 Entry Point: 010002cc Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig+KVM_powerpc-gcc9 # Build took: 0:02:50.240023