]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/futex: Define SYS_futex on 32-bit architectures with 64-bit time_t
authorCynthia Huang <cynthia@andestech.com>
Thu, 10 Jul 2025 10:36:30 +0000 (18:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:52 +0000 (16:25 +0200)
commitd97d710bc67c2e991e2a1c2727814444cf9fcf68
tree9d1883613a7f1df32b210203e361ef672e219ed6
parentef690c2f2744f45201dfa07e3c5083c91706b949
selftests/futex: Define SYS_futex on 32-bit architectures with 64-bit time_t

[ Upstream commit 04850819c65c8242072818655d4341e70ae998b5 ]

The kernel does not provide sys_futex() on 32-bit architectures that do not
support 32-bit time representations, such as riscv32.

As a result, glibc cannot define SYS_futex, causing compilation failures in
tests that rely on this syscall. Define SYS_futex as SYS_futex_time64 in
such cases to ensure successful compilation and compatibility.

Signed-off-by: Cynthia Huang <cynthia@andestech.com>
Signed-off-by: Ben Zong-You Xie <ben717@andestech.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/all/20250710103630.3156130-1-ben717@andestech.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/futex/include/futextest.h