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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'nolibc.2024.11.01a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu

Pull nolibc updates from Paul McKenney:

- Fix potential error due to missing #include on s390

- Compatibility with -Wmissing-fallthrough

- Run qemu with more memory during tests

* tag 'nolibc.2024.11.01a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
selftests/nolibc: start qemu with 1 GiB of memory
tools/nolibc: compiler: add macro __nolibc_fallthrough
tools/nolibc: s390: include std.h

+11 -3
+1
tools/include/nolibc/arch-s390.h
··· 10 10 11 11 #include "compiler.h" 12 12 #include "crt.h" 13 + #include "std.h" 13 14 14 15 /* Syscalls for s390: 15 16 * - registers are 64-bit
+6
tools/include/nolibc/compiler.h
··· 32 32 # define __no_stack_protector __attribute__((__optimize__("-fno-stack-protector"))) 33 33 #endif /* __nolibc_has_attribute(no_stack_protector) */ 34 34 35 + #if __nolibc_has_attribute(fallthrough) 36 + # define __nolibc_fallthrough do { } while (0); __attribute__((fallthrough)) 37 + #else 38 + # define __nolibc_fallthrough do { } while (0) 39 + #endif /* __nolibc_has_attribute(fallthrough) */ 40 + 35 41 #endif /* _NOLIBC_COMPILER_H */
+2 -1
tools/include/nolibc/stdio.h
··· 15 15 #include "stdarg.h" 16 16 #include "stdlib.h" 17 17 #include "string.h" 18 + #include "compiler.h" 18 19 19 20 #ifndef EOF 20 21 #define EOF (-1) ··· 265 264 case 'p': 266 265 *(out++) = '0'; 267 266 *(out++) = 'x'; 268 - /* fall through */ 267 + __nolibc_fallthrough; 269 268 default: /* 'x' and 'p' above */ 270 269 u64toh_r(v, out); 271 270 break;
+2 -2
tools/testing/selftests/nolibc/Makefile
··· 130 130 QEMU_ARGS_ppc64 = -M powernv -append "console=hvc0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 131 131 QEMU_ARGS_ppc64le = -M powernv -append "console=hvc0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 132 132 QEMU_ARGS_riscv = -M virt -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 133 - QEMU_ARGS_s390 = -M s390-ccw-virtio -m 1G -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 133 + QEMU_ARGS_s390 = -M s390-ccw-virtio -append "console=ttyS0 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 134 134 QEMU_ARGS_loongarch = -M virt -append "console=ttyS0,115200 panic=-1 $(TEST:%=NOLIBC_TEST=%)" 135 - QEMU_ARGS = $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_BIOS) $(QEMU_ARGS_EXTRA) 135 + QEMU_ARGS = -m 1G $(QEMU_ARGS_$(XARCH)) $(QEMU_ARGS_BIOS) $(QEMU_ARGS_EXTRA) 136 136 137 137 # OUTPUT is only set when run from the main makefile, otherwise 138 138 # it defaults to this nolibc directory.