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.

kselftest/arm64: tpidr2: Switch to waitpid() over wait4()

wait4() is deprecated, non-standard and about to be removed from nolibc.

Switch to the equivalent waitpid() call.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Mark Brown <broonie@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20250821-nolibc-enosys-v1-6-4b63f2caaa89@weissschuh.net

+3 -3
+3 -3
tools/testing/selftests/arm64/abi/tpidr2.c
··· 182 182 } 183 183 184 184 for (;;) { 185 - waiting = wait4(ret, &status, __WCLONE, NULL); 185 + waiting = waitpid(ret, &status, __WCLONE); 186 186 187 187 if (waiting < 0) { 188 188 if (errno == EINTR) 189 189 continue; 190 - ksft_print_msg("wait4() failed: %d\n", errno); 190 + ksft_print_msg("waitpid() failed: %d\n", errno); 191 191 return 0; 192 192 } 193 193 if (waiting != ret) { 194 - ksft_print_msg("wait4() returned wrong PID %d\n", 194 + ksft_print_msg("waitpid() returned wrong PID %d\n", 195 195 waiting); 196 196 return 0; 197 197 }