# git rev-parse -q --verify 90e603ca59646651c0f13d54d7b2b0c630c96998^{commit} 90e603ca59646651c0f13d54d7b2b0c630c96998 already have revision, skipping fetch # git checkout -q -f -B kisskb 90e603ca59646651c0f13d54d7b2b0c630c96998 # git clean -qxdf # < git log -1 # commit 90e603ca59646651c0f13d54d7b2b0c630c96998 # Author: Christophe Leroy # Date: Mon Oct 19 10:13:39 2020 +0000 # # powerpc/uaccess: Don't use "m<>" constraint with GCC 4.9 # # GCC 4.9 sometimes fails to build with "m<>" constraint in # inline assembly. # # CC lib/iov_iter.o # In file included from ./arch/powerpc/include/asm/cmpxchg.h:6:0, # from ./arch/powerpc/include/asm/atomic.h:11, # from ./include/linux/atomic.h:7, # from ./include/linux/crypto.h:15, # from ./include/crypto/hash.h:11, # from lib/iov_iter.c:2: # lib/iov_iter.c: In function 'iovec_from_user.part.30': # ./arch/powerpc/include/asm/uaccess.h:287:2: error: 'asm' operand has impossible constraints # __asm__ __volatile__( \ # ^ # ./include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # # define unlikely(x) __builtin_expect(!!(x), 0) # ^ # ./arch/powerpc/include/asm/uaccess.h:583:34: note: in expansion of macro 'unsafe_op_wrap' # #define unsafe_get_user(x, p, e) unsafe_op_wrap(__get_user_allowed(x, p), e) # ^ # ./arch/powerpc/include/asm/uaccess.h:329:10: note: in expansion of macro '__get_user_asm' # case 4: __get_user_asm(x, (u32 __user *)ptr, retval, "lwz"); break; \ # ^ # ./arch/powerpc/include/asm/uaccess.h:363:3: note: in expansion of macro '__get_user_size_allowed' # __get_user_size_allowed(__gu_val, __gu_addr, __gu_size, __gu_err); \ # ^ # ./arch/powerpc/include/asm/uaccess.h:100:2: note: in expansion of macro '__get_user_nocheck' # __get_user_nocheck((x), (ptr), sizeof(*(ptr)), false) # ^ # ./arch/powerpc/include/asm/uaccess.h:583:49: note: in expansion of macro '__get_user_allowed' # #define unsafe_get_user(x, p, e) unsafe_op_wrap(__get_user_allowed(x, p), e) # ^ # lib/iov_iter.c:1663:3: note: in expansion of macro 'unsafe_get_user' # unsafe_get_user(len, &uiov[i].iov_len, uaccess_end); # ^ # make[1]: *** [scripts/Makefile.build:283: lib/iov_iter.o] Error 1 # # Define a UPD_CONSTR macro that is "<>" by default and # only "" with GCC prior to GCC 5. # # Fixes: fcf1f26895a4 ("powerpc/uaccess: Add pre-update addressing to __put_user_asm_goto()") # Fixes: 2f279eeb68b8 ("powerpc/uaccess: Add pre-update addressing to __get_user_asm() and __put_user_asm()") # Signed-off-by: Christophe Leroy # Acked-by: Segher Boessenkool # --- # v2: Moved UPD_CONSTR to asm-const.h to avoid circular inclusion issues with patch 3. # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux-ld --version # < git log --format=%s --max-count=1 90e603ca59646651c0f13d54d7b2b0c630c96998 # < make -s -j 48 ARCH=mips O=/kisskb/build/chleroy_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- defconfig # < make -s -j 48 ARCH=mips O=/kisskb/build/chleroy_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- help # make -s -j 48 ARCH=mips O=/kisskb/build/chleroy_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- olddefconfig # make -s -j 48 ARCH=mips O=/kisskb/build/chleroy_mips-defconfig_mips-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/mips-linux/bin/mips-linux- FIT description: Linux 5.9.0-55408-g90e603ca5964 Created: Thu Oct 22 05:35:12 2020 Image 0 (kernel@0) Description: Linux 5.9.0-55408-g90e603ca5964 Created: Thu Oct 22 05:35:12 2020 Type: Kernel Image Compression: gzip compressed Data Size: 5106153 Bytes = 4986.48 KiB = 4.87 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8095aae0 Hash algo: sha1 Hash value: cd81af4a9aef77190db3aa3b91b6267a0c73d271 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Thu Oct 22 05:35:12 2020 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: Thu Oct 22 05:35:12 2020 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: Thu Oct 22 05:35:12 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 4639 Bytes = 4.53 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: be2724f58b66c316a61da7c11ced633f4e7e86c7 Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Thu Oct 22 05:35:12 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 5398 Bytes = 5.27 KiB = 0.01 MiB Architecture: MIPS Hash algo: sha1 Hash value: 2a757b83ef9e9d35fb6c43bdbde70d311b3e4555 Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Thu Oct 22 05:35:12 2020 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@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/chleroy_mips-defconfig_mips-gcc4.9 # Build took: 0:01:42.482922