rseq/selftests: Fix namespace collision with rseq UAPI header
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 19 Mar 2025 20:21:39 +0000 (16:21 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 20:26:24 +0000 (21:26 +0100)
commitd047e32b8d1b29d178074b5f4312372e991d5da2
treede756e666bbaf37a45fb1ec9493aed268864aba5
parent34929a070b7fd06c386080c926b61ee844e6ad34
rseq/selftests: Fix namespace collision with rseq UAPI header

When the rseq UAPI header is included, 'union rseq' clashes with 'struct
rseq'. It's not the case in the rseq selftests but it does break the KVM
selftests that also include this file.

Rename 'union rseq' to 'union rseq_tls' to fix this.

Fixes: e6644c967d3c ("rseq/selftests: Ensure the rseq ABI TLS is actually 1024 bytes")
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/r/20250319202144.1141542-1-mjeanson@efficios.com
tools/testing/selftests/rseq/rseq.c