Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH] selftests/vDSO: Fix undefined CLONE_NEWTIME by including
@ 2025-01-26 10:59 Purva Yeshi
  2025-01-27  8:02 ` Christophe Leroy
  0 siblings, 1 reply; 6+ messages in thread
From: Purva Yeshi @ 2025-01-26 10:59 UTC (permalink / raw)
  To: skhan
  Cc: shuah, Jason, christophe.leroy, liaoyu15, broonie,
	linux-kselftest, linux-kernel, Purva Yeshi

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@gmail.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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-01 11:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-26 10:59 [PATCH] selftests/vDSO: Fix undefined CLONE_NEWTIME by including Purva Yeshi
2025-01-27  8:02 ` Christophe Leroy
2025-01-29 18:17   ` Purva Yeshi
2025-01-30  7:02     ` Christophe Leroy
2025-02-01 11:20       ` Purva Yeshi
2025-01-29 18:24   ` Purva Yeshi

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