Re: [PATCH] selftests/futex: load atomic values before harness comparisons
From: André Almeida
Date: Tue Nov 03 2026 - 08:18:39 EST
Em 14/10/2026 17:01, Sasha Levin escreveu:
Clang 21 rejects the harness comparison because typeof(*futex) preserves
the atomic qualification. Load the value explicitly in the three affected
assertions so the harness compares unsigned integers. Atomic access and
its existing sequentially consistent ordering are preserved.
The baseline produces three invalid-operands errors. The complete futex
suite builds with Clang 21 and GCC 14 after the change.
Fixes: 608323bf7bb8 ("selftests: futex: Add tests for robust release operations")
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
Reviewed-by: André Almeida <andrealmeid@xxxxxxxxxx>