# 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/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-ld --version # < git log --format=%s --max-count=1 df85055f4421b6d147cca0ac6df8535392128775 # < make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # < make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- help # make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- olddefconfig # make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-next_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- FIT description: Linux 5.13.0-rc2-gdf85055f4421 Created: Mon Jun 7 05:08:29 2021 Image 0 (kernel) Description: Linux 5.13.0-rc2-gdf85055f4421 Created: Mon Jun 7 05:08:29 2021 Type: Kernel Image Compression: gzip compressed Data Size: 5350430 Bytes = 5225.03 KiB = 5.10 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x809d0ab8 Hash algo: sha1 Hash value: 66eeed2765fe7dc47dc317cea71338d38ac35b62 Image 1 (fdt-boston) Description: img,boston Device Tree Created: Mon Jun 7 05:08:29 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt-ni169445) Description: NI 169445 device tree Created: Mon Jun 7 05:08:29 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt-ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Mon Jun 7 05:08:29 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 4659 Bytes = 4.55 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 5bcb6e4f21e8e5372544aa130b3bd097355a9050 Image 4 (fdt-ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Mon Jun 7 05:08:29 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 5418 Bytes = 5.29 KiB = 0.01 MiB Architecture: MIPS Hash algo: sha1 Hash value: 93d882f2009a217e0fa9dab94788535ed2be8476 Image 5 (fdt-xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Mon Jun 7 05:08:29 2021 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf-default' Configuration 0 (conf-default) Description: Generic Linux kernel Kernel: kernel Configuration 1 (conf-boston) Description: Boston Linux kernel Kernel: kernel FDT: fdt-boston Configuration 2 (conf-ni169445) Description: NI 169445 Linux Kernel Kernel: kernel FDT: fdt-ni169445 Configuration 3 (conf-ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel FDT: fdt-ocelot_pcb123 Configuration 4 (conf-ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel FDT: fdt-ocelot_pcb120 Configuration 5 (conf-xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel FDT: fdt-xilfpga Completed OK # rm -rf /kisskb/build/powerpc-next_mips-defconfig_mipsel # Build took: 0:01:03.941540