[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241002152849.111841-1-surajsonawane0215@gmail.com>
Date: Wed, 2 Oct 2024 20:58:49 +0530
From: SurajSonawane2415 <surajsonawane0215@...il.com>
To: shuah@...nel.org,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: SurajSonawane2415 <surajsonawane0215@...il.com>
Subject: [PATCH] selftests/vdso: Add linux/sched.h to fix CLONE_NEWTIME build error
Fix build error in vdso_test_getrandom.c due to missing CLONE_NEWTIME.
Include linux/sched.h to define CLONE_NEWTIME.
Ensure successful compilation by resolving the missing header issue.
Signed-off-by: SurajSonawane2415 <surajsonawane0215@...il.com>
---
tools/testing/selftests/vDSO/vdso_test_getrandom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/vDSO/vdso_test_getrandom.c b/tools/testing/selftests/vDSO/vdso_test_getrandom.c
index 72a1d9b43..3f2a4dbf8 100644
--- a/tools/testing/selftests/vDSO/vdso_test_getrandom.c
+++ b/tools/testing/selftests/vDSO/vdso_test_getrandom.c
@@ -22,6 +22,7 @@
#include <linux/random.h>
#include <linux/compiler.h>
#include <linux/ptrace.h>
+#include <linux/sched.h>
#include "../kselftest.h"
#include "parse_vdso.h"
--
2.34.1
Powered by blists - more mailing lists