]> git.itanic.dy.fi Git - linux-stable/commit
selftests: kselftest: Fix build failure with NOLIBC
authorOleg Nesterov <oleg@redhat.com>
Fri, 12 Apr 2024 12:35:36 +0000 (14:35 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 12 Apr 2024 14:55:00 +0000 (16:55 +0200)
commit16767502aa990cca2cb7d1372b31d328c4c85b40
treedafe2c2c898c129dc440bd48822b43d018811158
parented366de8ec89d4f960d66c85fc37d9de22f7bf6d
selftests: kselftest: Fix build failure with NOLIBC

As Mark explains ksft_min_kernel_version() can't be compiled with nolibc,
it doesn't implement uname().

Fixes: 6d029c25b71f ("selftests/timers/posix_timers: Reimplement check_timer_distribution()")
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240412123536.GA32444@redhat.com
Closes: https://lore.kernel.org/all/f0523b3a-ea08-4615-b0fb-5b504a2d39df@sirena.org.uk/
tools/testing/selftests/kselftest.h