mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip: locking/futex] selftests/futex: Build without headers nonsense
@ 2025-05-08 10:33 tip-bot2 for Peter Zijlstra
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Peter Zijlstra @ 2025-05-08 10:33 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Peter Zijlstra (Intel), x86, linux-kernel

The following commit has been merged into the locking/futex branch of tip:

Commit-ID:     8b4a5c2497fad653bc54ddb037d38eb5bf835857
Gitweb:        https://git.kernel.org/tip/8b4a5c2497fad653bc54ddb037d38eb5bf835857
Author:        Peter Zijlstra <peterz@infradead.org>
AuthorDate:    Fri, 02 May 2025 20:57:23 +02:00
Committer:     Peter Zijlstra <peterz@infradead.org>
CommitterDate: Sat, 03 May 2025 12:02:10 +02:00

selftests/futex: Build without headers nonsense

Make it build without relying on recent headers.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
 tools/testing/selftests/futex/include/futex2test.h | 18 +++++++++++++-
 1 file changed, 18 insertions(+)

diff --git a/tools/testing/selftests/futex/include/futex2test.h b/tools/testing/selftests/futex/include/futex2test.h
index 9d30552..9ee3592 100644
--- a/tools/testing/selftests/futex/include/futex2test.h
+++ b/tools/testing/selftests/futex/include/futex2test.h
@@ -8,6 +8,24 @@
 
 #define u64_to_ptr(x) ((void *)(uintptr_t)(x))
 
+#ifndef __NR_futex_waitv
+#define __NR_futex_waitv 449
+struct futex_waitv {
+	__u64 val;
+	__u64 uaddr;
+	__u32 flags;
+	__u32 __reserved;
+};
+#endif
+
+#ifndef FUTEX2_SIZE_U32
+#define FUTEX2_SIZE_U32 0x02
+#endif
+
+#ifndef FUTEX_32
+#define FUTEX_32 FUTEX2_SIZE_U32
+#endif
+
 /**
  * futex_waitv - Wait at multiple futexes, wake on any
  * @waiters:    Array of waiters

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-08 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-08 10:33 [tip: locking/futex] selftests/futex: Build without headers nonsense tip-bot2 for Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®