Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: Remove s390 compat support

Remove s390 compat support from everything within tools, since s390 compat
support will be removed from the kernel.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Weißschuh <linux@weissschuh.net> # tools/nolibc selftests/nolibc
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net> # selftests/vDSO
Acked-by: Alexei Starovoitov <ast@kernel.org> # bpf bits
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

+2 -69
-4
tools/arch/s390/include/uapi/asm/bitsperlong.h
··· 2 2 #ifndef __ASM_S390_BITSPERLONG_H 3 3 #define __ASM_S390_BITSPERLONG_H 4 4 5 - #ifndef __s390x__ 6 - #define __BITS_PER_LONG 32 7 - #else 8 5 #define __BITS_PER_LONG 64 9 - #endif 10 6 11 7 #include <asm-generic/bitsperlong.h> 12 8
-5
tools/include/nolibc/arch-s390.h
··· 143 143 void __attribute__((weak, noreturn)) __nolibc_entrypoint __no_stack_protector _start(void) 144 144 { 145 145 __asm__ volatile ( 146 - #ifdef __s390x__ 147 146 "lgr %r2, %r15\n" /* save stack pointer to %r2, as arg1 of _start_c */ 148 147 "aghi %r15, -160\n" /* allocate new stackframe */ 149 - #else 150 - "lr %r2, %r15\n" 151 - "ahi %r15, -96\n" 152 - #endif 153 148 "xc 0(8,%r15), 0(%r15)\n" /* clear backchain */ 154 149 "brasl %r14, _start_c\n" /* transfer to c runtime */ 155 150 );
+1 -1
tools/include/nolibc/arch.h
··· 27 27 #include "arch-powerpc.h" 28 28 #elif defined(__riscv) 29 29 #include "arch-riscv.h" 30 - #elif defined(__s390x__) || defined(__s390__) 30 + #elif defined(__s390x__) 31 31 #include "arch-s390.h" 32 32 #elif defined(__loongarch__) 33 33 #include "arch-loongarch.h"
-4
tools/lib/bpf/libbpf.c
··· 11325 11325 return "ia32"; 11326 11326 #elif defined(__s390x__) 11327 11327 return "s390x"; 11328 - #elif defined(__s390__) 11329 - return "s390"; 11330 11328 #elif defined(__arm__) 11331 11329 return "arm"; 11332 11330 #elif defined(__aarch64__) ··· 12111 12113 return "/lib/i386-linux-gnu"; 12112 12114 #elif defined(__s390x__) 12113 12115 return "/lib/s390x-linux-gnu"; 12114 - #elif defined(__s390__) 12115 - return "/lib/s390-linux-gnu"; 12116 12116 #elif defined(__arm__) && defined(__SOFTFP__) 12117 12117 return "/lib/arm-linux-gnueabi"; 12118 12118 #elif defined(__arm__) && !defined(__SOFTFP__)
-2
tools/lib/bpf/usdt.c
··· 1376 1376 1377 1377 #elif defined(__s390x__) 1378 1378 1379 - /* Do not support __s390__ for now, since user_pt_regs is broken with -m31. */ 1380 - 1381 1379 static int parse_usdt_arg(const char *arg_str, int arg_num, struct usdt_arg_spec *arg, int *arg_sz) 1382 1380 { 1383 1381 unsigned int reg;
-5
tools/testing/selftests/nolibc/Makefile.nolibc
··· 87 87 IMAGE_riscv32 = arch/riscv/boot/Image 88 88 IMAGE_riscv64 = arch/riscv/boot/Image 89 89 IMAGE_s390x = arch/s390/boot/bzImage 90 - IMAGE_s390 = arch/s390/boot/bzImage 91 90 IMAGE_loongarch = arch/loongarch/boot/vmlinuz.efi 92 91 IMAGE_sparc32 = arch/sparc/boot/image 93 92 IMAGE_sparc64 = arch/sparc/boot/image ··· 116 117 DEFCONFIG_riscv32 = rv32_defconfig 117 118 DEFCONFIG_riscv64 = defconfig 118 119 DEFCONFIG_s390x = defconfig 119 - DEFCONFIG_s390 = defconfig compat.config 120 120 DEFCONFIG_loongarch = defconfig 121 121 DEFCONFIG_sparc32 = sparc32_defconfig 122 122 DEFCONFIG_sparc64 = sparc64_defconfig ··· 154 156 QEMU_ARCH_riscv32 = riscv32 155 157 QEMU_ARCH_riscv64 = riscv64 156 158 QEMU_ARCH_s390x = s390x 157 - QEMU_ARCH_s390 = s390x 158 159 QEMU_ARCH_loongarch = loongarch64 159 160 QEMU_ARCH_sparc32 = sparc 160 161 QEMU_ARCH_sparc64 = sparc64 ··· 194 197 QEMU_ARGS_riscv32 = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 195 198 QEMU_ARGS_riscv64 = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 196 199 QEMU_ARGS_s390x = -M s390-ccw-virtio -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 197 - QEMU_ARGS_s390 = -M s390-ccw-virtio -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 198 200 QEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 199 201 QEMU_ARGS_sparc32 = -M SS-5 -m 256M -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 200 202 QEMU_ARGS_sparc64 = -M sun4u -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" ··· 219 223 CFLAGS_ppc64 = -m64 -mbig-endian -mno-vsx $(call cc-option,-mmultiple) 220 224 CFLAGS_ppc64le = -m64 -mlittle-endian -mno-vsx $(call cc-option,-mabi=elfv2) 221 225 CFLAGS_s390x = -m64 222 - CFLAGS_s390 = -m31 223 226 CFLAGS_mips32le = -EL -mabi=32 -fPIC 224 227 CFLAGS_mips32be = -EB -mabi=32 225 228 CFLAGS_mipsn32le = -EL -mabi=n32 -fPIC -march=mips64r2
+1 -5
tools/testing/selftests/nolibc/run-tests.sh
··· 23 23 mips32le mips32be mipsn32le mipsn32be mips64le mips64be 24 24 ppc ppc64 ppc64le 25 25 riscv32 riscv64 26 - s390x s390 26 + s390x 27 27 loongarch 28 28 sparc32 sparc64 29 29 m68k ··· 185 185 exit 1 186 186 esac 187 187 printf '%-15s' "$arch:" 188 - if [ "$arch" = "s390" ] && ([ "$llvm" = "1" ] || [ "$test_mode" = "user" ]); then 189 - echo "Unsupported configuration" 190 - return 191 - fi 192 188 if [ "$arch" = "m68k" -o "$arch" = "sh4" ] && [ "$llvm" = "1" ]; then 193 189 echo "Unsupported configuration" 194 190 return
-39
tools/testing/selftests/rseq/rseq-s390.h
··· 28 28 RSEQ_WRITE_ONCE(*(p), v); \ 29 29 } while (0) 30 30 31 - #ifdef __s390x__ 32 - 33 31 #define LONG_L "lg" 34 32 #define LONG_S "stg" 35 33 #define LONG_LT_R "ltgr" ··· 60 62 ".pushsection __rseq_exit_point_array, \"aw\"\n\t" \ 61 63 ".quad " __rseq_str(start_ip) ", " __rseq_str(exit_ip) "\n\t" \ 62 64 ".popsection\n\t" 63 - 64 - #elif __s390__ 65 - 66 - #define __RSEQ_ASM_DEFINE_TABLE(label, version, flags, \ 67 - start_ip, post_commit_offset, abort_ip) \ 68 - ".pushsection __rseq_cs, \"aw\"\n\t" \ 69 - ".balign 32\n\t" \ 70 - __rseq_str(label) ":\n\t" \ 71 - ".long " __rseq_str(version) ", " __rseq_str(flags) "\n\t" \ 72 - ".long 0x0, " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(abort_ip) "\n\t" \ 73 - ".popsection\n\t" \ 74 - ".pushsection __rseq_cs_ptr_array, \"aw\"\n\t" \ 75 - ".long 0x0, " __rseq_str(label) "b\n\t" \ 76 - ".popsection\n\t" 77 - 78 - /* 79 - * Exit points of a rseq critical section consist of all instructions outside 80 - * of the critical section where a critical section can either branch to or 81 - * reach through the normal course of its execution. The abort IP and the 82 - * post-commit IP are already part of the __rseq_cs section and should not be 83 - * explicitly defined as additional exit points. Knowing all exit points is 84 - * useful to assist debuggers stepping over the critical section. 85 - */ 86 - #define RSEQ_ASM_DEFINE_EXIT_POINT(start_ip, exit_ip) \ 87 - ".pushsection __rseq_exit_point_array, \"aw\"\n\t" \ 88 - ".long 0x0, " __rseq_str(start_ip) ", 0x0, " __rseq_str(exit_ip) "\n\t" \ 89 - ".popsection\n\t" 90 - 91 - #define LONG_L "l" 92 - #define LONG_S "st" 93 - #define LONG_LT_R "ltr" 94 - #define LONG_CMP "c" 95 - #define LONG_CMP_R "cr" 96 - #define LONG_ADDI "ahi" 97 - #define LONG_ADD_R "ar" 98 - 99 - #endif 100 65 101 66 #define RSEQ_ASM_DEFINE_TABLE(label, start_ip, post_commit_ip, abort_ip) \ 102 67 __RSEQ_ASM_DEFINE_TABLE(label, 0x0, 0x0, start_ip, \
-4
tools/testing/selftests/vDSO/vdso_config.h
··· 25 25 #define VDSO_VERSION 1 26 26 #define VDSO_NAMES 0 27 27 #define VDSO_32BIT 1 28 - #elif defined (__s390__) && !defined(__s390x__) 29 - #define VDSO_VERSION 2 30 - #define VDSO_NAMES 0 31 - #define VDSO_32BIT 1 32 28 #elif defined (__s390x__) 33 29 #define VDSO_VERSION 2 34 30 #define VDSO_NAMES 0