Buildresult: powerpc-next/ppc64e_defconfig/powerpc-gcc4.9 built on Jun 30 2020, 06:05
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
Failed
Date/Time:
Jun 30 2020, 06:05
Duration:
0:01:42.391671
Builder:
ka1
Revision:
powerpc/uaccess: Use flexible addressing with __put_user()/__get_user() (
62aef98aa07ec7b0984b3e67b4e3a1604ed8ada8)
Target:
powerpc-next/ppc64e_defconfig/powerpc-gcc4.9
Branch:
powerpc-next
Compiler:
powerpc-gcc4.9
(powerpc64-linux-gcc (GCC) 4.9.4 / GNU ld (GNU Binutils) 2.29.1.20170915)
Config:
ppc64e_defconfig
(
download
)
Log:
Download original
Possible errors
arch/powerpc/include/asm/uaccess.h:319:2: error: 'asm' operand has impossible constraints make[3]: *** [scripts/Makefile.build:280: arch/powerpc/kernel/signal_64.o] Error 1 make[2]: *** [scripts/Makefile.build:497: arch/powerpc/kernel] Error 2 make[1]: *** [Makefile:1756: arch/powerpc] Error 2 make: *** [Makefile:185: __sub-make] Error 2
No warnings found in log.
Full Log
# git rev-parse -q --verify 62aef98aa07ec7b0984b3e67b4e3a1604ed8ada8^{commit} 62aef98aa07ec7b0984b3e67b4e3a1604ed8ada8 already have revision, skipping fetch # git checkout -q -f -B kisskb 62aef98aa07ec7b0984b3e67b4e3a1604ed8ada8 # git clean -qxdf # < git log -1 # commit 62aef98aa07ec7b0984b3e67b4e3a1604ed8ada8 # Author: Christophe Leroy <christophe.leroy@c-s.fr> # Date: Thu Apr 16 12:39:42 2020 +0000 # # powerpc/uaccess: Use flexible addressing with __put_user()/__get_user() # # At the time being, __put_user()/__get_user() and friends only use # D-form addressing, with 0 offset. Ex: # # lwz reg1, 0(reg2) # # Give the compiler the opportunity to use other adressing modes # whenever possible, to get more optimised code. # # Hereunder is a small exemple: # # struct test { # u32 item1; # u16 item2; # u8 item3; # u64 item4; # }; # # int set_test_user(struct test __user *from, struct test __user *to) # { # int err; # u32 item1; # u16 item2; # u8 item3; # u64 item4; # # err = __get_user(item1, &from->item1); # err |= __get_user(item2, &from->item2); # err |= __get_user(item3, &from->item3); # err |= __get_user(item4, &from->item4); # # err |= __put_user(item1, &to->item1); # err |= __put_user(item2, &to->item2); # err |= __put_user(item3, &to->item3); # err |= __put_user(item4, &to->item4); # # return err; # } # # Before the patch: # # 00000df0 <set_test_user>: # df0: 94 21 ff f0 stwu r1,-16(r1) # df4: 39 40 00 00 li r10,0 # df8: 93 c1 00 08 stw r30,8(r1) # dfc: 93 e1 00 0c stw r31,12(r1) # e00: 7d 49 53 78 mr r9,r10 # e04: 80 a3 00 00 lwz r5,0(r3) # e08: 38 e3 00 04 addi r7,r3,4 # e0c: 7d 46 53 78 mr r6,r10 # e10: a0 e7 00 00 lhz r7,0(r7) # e14: 7d 29 33 78 or r9,r9,r6 # e18: 39 03 00 06 addi r8,r3,6 # e1c: 7d 46 53 78 mr r6,r10 # e20: 89 08 00 00 lbz r8,0(r8) # e24: 7d 29 33 78 or r9,r9,r6 # e28: 38 63 00 08 addi r3,r3,8 # e2c: 7d 46 53 78 mr r6,r10 # e30: 83 c3 00 00 lwz r30,0(r3) # e34: 83 e3 00 04 lwz r31,4(r3) # e38: 7d 29 33 78 or r9,r9,r6 # e3c: 7d 43 53 78 mr r3,r10 # e40: 90 a4 00 00 stw r5,0(r4) # e44: 7d 29 1b 78 or r9,r9,r3 # e48: 38 c4 00 04 addi r6,r4,4 # e4c: 7d 43 53 78 mr r3,r10 # e50: b0 e6 00 00 sth r7,0(r6) # e54: 7d 29 1b 78 or r9,r9,r3 # e58: 38 e4 00 06 addi r7,r4,6 # e5c: 7d 43 53 78 mr r3,r10 # e60: 99 07 00 00 stb r8,0(r7) # e64: 7d 23 1b 78 or r3,r9,r3 # e68: 38 84 00 08 addi r4,r4,8 # e6c: 93 c4 00 00 stw r30,0(r4) # e70: 93 e4 00 04 stw r31,4(r4) # e74: 7c 63 53 78 or r3,r3,r10 # e78: 83 c1 00 08 lwz r30,8(r1) # e7c: 83 e1 00 0c lwz r31,12(r1) # e80: 38 21 00 10 addi r1,r1,16 # e84: 4e 80 00 20 blr # # After the patch: # # 00000dbc <set_test_user>: # dbc: 39 40 00 00 li r10,0 # dc0: 7d 49 53 78 mr r9,r10 # dc4: 80 03 00 00 lwz r0,0(r3) # dc8: 7d 48 53 78 mr r8,r10 # dcc: a1 63 00 04 lhz r11,4(r3) # dd0: 7d 29 43 78 or r9,r9,r8 # dd4: 7d 48 53 78 mr r8,r10 # dd8: 88 a3 00 06 lbz r5,6(r3) # ddc: 7d 29 43 78 or r9,r9,r8 # de0: 7d 48 53 78 mr r8,r10 # de4: 80 c3 00 08 lwz r6,8(r3) # de8: 80 e3 00 0c lwz r7,12(r3) # dec: 7d 29 43 78 or r9,r9,r8 # df0: 7d 43 53 78 mr r3,r10 # df4: 90 04 00 00 stw r0,0(r4) # df8: 7d 29 1b 78 or r9,r9,r3 # dfc: 7d 43 53 78 mr r3,r10 # e00: b1 64 00 04 sth r11,4(r4) # e04: 7d 29 1b 78 or r9,r9,r3 # e08: 7d 43 53 78 mr r3,r10 # e0c: 98 a4 00 06 stb r5,6(r4) # e10: 7d 23 1b 78 or r3,r9,r3 # e14: 90 c4 00 08 stw r6,8(r4) # e18: 90 e4 00 0c stw r7,12(r4) # e1c: 7c 63 53 78 or r3,r3,r10 # e20: 4e 80 00 20 blr # # Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> # Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org> # Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> # Link: https://lore.kernel.org/r/c2addbd9d76212242d3d8554a2f7ff849fb08b85.1587040754.git.christophe.leroy@c-s.fr # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 62aef98aa07ec7b0984b3e67b4e3a1604ed8ada8 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64e_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/uaccess.h:11:0, from /kisskb/src/include/linux/sched/task.h:11, from /kisskb/src/include/linux/sched/signal.h:9, from /kisskb/src/include/linux/rcuwait.h:6, from /kisskb/src/include/linux/percpu-rwsem.h:7, from /kisskb/src/include/linux/fs.h:33, from /kisskb/src/include/linux/huge_mm.h:8, from /kisskb/src/include/linux/mm.h:675, from /kisskb/src/arch/powerpc/kernel/signal_64.c:12: /kisskb/src/arch/powerpc/kernel/signal_64.c: In function '__se_sys_swapcontext': /kisskb/src/arch/powerpc/include/asm/uaccess.h:319:2: error: 'asm' operand has impossible constraints __asm__ __volatile__( \ ^ /kisskb/src/arch/powerpc/include/asm/uaccess.h:359:10: note: in expansion of macro '__get_user_asm' case 1: __get_user_asm(x, (u8 __user *)ptr, retval, "lbz"); break; \ ^ /kisskb/src/arch/powerpc/include/asm/uaccess.h:370:2: note: in expansion of macro '__get_user_size_allowed' __get_user_size_allowed(x, ptr, size, retval); \ ^ /kisskb/src/arch/powerpc/include/asm/uaccess.h:393:3: note: in expansion of macro '__get_user_size' __get_user_size(__gu_val, __gu_addr, __gu_size, __gu_err); \ ^ /kisskb/src/arch/powerpc/include/asm/uaccess.h:94:2: note: in expansion of macro '__get_user_nocheck' __get_user_nocheck((x), (ptr), sizeof(*(ptr)), true) ^ /kisskb/src/arch/powerpc/kernel/signal_64.c:672:9: note: in expansion of macro '__get_user' || __get_user(tmp, (u8 __user *) new_ctx + ctx_size - 1)) ^ make[3]: *** [/kisskb/src/scripts/Makefile.build:280: arch/powerpc/kernel/signal_64.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:497: arch/powerpc/kernel] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1756: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:185: __sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64e_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_ppc64e_defconfig_powerpc-gcc4.9 # Build took: 0:01:42.391671
© Michael Ellerman 2006-2018.