[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250902170147.55583-3-aqibaf@amazon.com>
Date: Tue, 2 Sep 2025 17:01:39 +0000
From: Aqib Faruqui <aqibaf@...zon.com>
To: Kees Cook <kees@...nel.org>, Andy Lutomirski <luto@...capital.net>, "Will
Drewry" <wad@...omium.org>, Shuah Khan <shuah@...nel.org>, Christian Brauner
<brauner@...nel.org>, <linux-kselftest@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <nh-open-source@...zon.com>, <aqibaf@...zon.com>
Subject: [PATCH v2 2/7] selftests: harness: Include pidfd.h to get syscall definitions from tools/
The kselftest harness uses pidfd_open() for test timeout handling but
may not have access to the syscall definitions in non-glibc
environments. Include pidfd.h to ensure the syscall numbers are
available.
Signed-off-by: Aqib Faruqui <aqibaf@...zon.com>
---
tools/testing/selftests/kselftest_harness.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h
index 2925e47db..1dd3e5a1b 100644
--- a/tools/testing/selftests/kselftest_harness.h
+++ b/tools/testing/selftests/kselftest_harness.h
@@ -69,6 +69,7 @@
#include <unistd.h>
#include "kselftest.h"
+#include "pidfd/pidfd.h"
#define TEST_TIMEOUT_DEFAULT 30
--
2.47.3
Powered by blists - more mailing lists