# git rev-parse -q --verify a02cbc7ffe529ed58b6bbe54652104fc2c88bd77^{commit} a02cbc7ffe529ed58b6bbe54652104fc2c88bd77 already have revision, skipping fetch # git checkout -q -f -B kisskb a02cbc7ffe529ed58b6bbe54652104fc2c88bd77 # git clean -qxdf # < git log -1 # commit a02cbc7ffe529ed58b6bbe54652104fc2c88bd77 # Author: Michael Ellerman # Date: Mon Oct 14 13:30:43 2019 +1100 # # selftests/powerpc: Fixup clobbers for TM tests # # Some of our TM (Transactional Memory) tests, list "r1" (the stack # pointer) as a clobbered register. # # GCC >= 9 doesn't accept this, and the build breaks: # # ptrace-tm-spd-tar.c: In function 'tm_spd_tar': # ptrace-tm-spd-tar.c:31:2: error: listing the stack pointer register 'r1' in a clobber list is deprecated [-Werror=deprecated] # 31 | asm __volatile__( # | ^~~ # ptrace-tm-spd-tar.c:31:2: note: the value of the stack pointer after an 'asm' statement must be the same as it was before the statement # # We do have some fairly large inline asm blocks in these tests, and # some of them do change the value of r1. However they should all return # to C with the value in r1 restored, so I think it's legitimate to say # r1 is not clobbered. # # As Segher points out, the r1 clobbers may have been added because of # the use of `or 1,1,1`, however that doesn't actually clobber r1. # # Segher also points out that some of these tests do clobber LR, because # they call functions, and that is not listed in the clobbers, so add # that where appropriate. # # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20191029095324.14669-1-mpe@ellerman.id.au # < /opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux-gcc --version # < /opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux-ld --version # < git log --format=%s --max-count=1 a02cbc7ffe529ed58b6bbe54652104fc2c88bd77 # < make -s -j 48 ARCH=arm64 O=/kisskb/build/powerpc-next_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- defconfig # make -s -j 48 ARCH=arm64 O=/kisskb/build/powerpc-next_arm64-defconfig_arm64-gcc5.4 CROSS_COMPILE=/opt/cross/kisskb/br-aarch64-glibc-2016.08-613-ge98b4dd/bin/aarch64-linux- arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:38: LSE atomics not supported by binutils arch/arm64/Makefile:62: CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will not be built /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr': /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:399:26: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized] pd->msg->buf[real_pos] = data; ^ /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:372:16: note: 'data' was declared here unsigned char data; ^ In file included from /kisskb/src/include/linux/list.h:9:0, from /kisskb/src/include/linux/wait.h:7, from /kisskb/src/include/linux/wait_bit.h:8, from /kisskb/src/include/linux/fs.h:6, from /kisskb/src/fs/btrfs/send.c:7: /kisskb/src/fs/btrfs/send.c: In function 'process_extent': /kisskb/src/include/linux/kernel.h:37:33: warning: 'clone_src_i_size' may be used uninitialized in this function [-Wmaybe-uninitialized] #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) ^ /kisskb/src/fs/btrfs/send.c:5088:6: note: 'clone_src_i_size' was declared here u64 clone_src_i_size; ^ In file included from /kisskb/src/include/linux/rwsem.h:16:0, from /kisskb/src/include/linux/notifier.h:15, from /kisskb/src/include/linux/clk.h:14, from /kisskb/src/drivers/tty/serial/sh-sci.c:24: /kisskb/src/drivers/tty/serial/sh-sci.c: In function 'sci_dma_rx_submit': /kisskb/src/include/linux/spinlock.h:288:3: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] _raw_spin_unlock_irqrestore(lock, flags); \ ^ /kisskb/src/drivers/tty/serial/sh-sci.c:1351:16: note: 'flags' was declared here unsigned long flags; ^ Completed OK # rm -rf /kisskb/build/powerpc-next_arm64-defconfig_arm64-gcc5.4 # Build took: 0:04:29.300347