Skip to content

Commit 61a3cf7

Browse files
committed
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
1 parent f11e156 commit 61a3cf7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • tools/testing/selftests/arm64/abi

tools/testing/selftests/arm64/abi/tpidr2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,16 @@ static int write_clone_read(void)
182182
}
183183

184184
for (;;) {
185-
waiting = wait4(ret, &status, __WCLONE, NULL);
185+
waiting = waitpid(ret, &status, __WCLONE);
186186

187187
if (waiting < 0) {
188188
if (errno == EINTR)
189189
continue;
190-
ksft_print_msg("wait4() failed: %d\n", errno);
190+
ksft_print_msg("waitpid() failed: %d\n", errno);
191191
return 0;
192192
}
193193
if (waiting != ret) {
194-
ksft_print_msg("wait4() returned wrong PID %d\n",
194+
ksft_print_msg("waitpid() returned wrong PID %d\n",
195195
waiting);
196196
return 0;
197197
}

0 commit comments

Comments
 (0)