[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250126105932.63762-1-purvayeshi550@gmail.com>
Date: Sun, 26 Jan 2025 16:29:32 +0530
From: Purva Yeshi <purvayeshi550@...il.com>
To: skhan@...uxfoundation.org
Cc: shuah@...nel.org,
Jason@...c4.com,
christophe.leroy@...roup.eu,
liaoyu15@...wei.com,
broonie@...nel.org,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
Purva Yeshi <purvayeshi550@...il.com>
Subject: [PATCH] selftests/vDSO: Fix undefined CLONE_NEWTIME by including
Fix the build failure caused by the undefined `CLONE_NEWTIME`.
Include the `linux/sched.h` header file where the function is defined to
ensure successful compilation of the selftests.
Signed-off-by: Purva Yeshi <purvayeshi550@...il.com>
---
tools/testing/selftests/vDSO/vdso_test_getrandom.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/vDSO/vdso_test_getrandom.c b/tools/testing/selftests/vDSO/vdso_test_getrandom.c
index 95057f7567db..b2c9cf15878b 100644
--- a/tools/testing/selftests/vDSO/vdso_test_getrandom.c
+++ b/tools/testing/selftests/vDSO/vdso_test_getrandom.c
@@ -29,6 +29,8 @@
#include "vdso_config.h"
#include "vdso_call.h"
+#include <linux/sched.h>
+
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
--
2.34.1
Powered by blists - more mailing lists