From: SurajSonawane2415 <surajsonawane0215@gmail.com>
To: shuah@kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: SurajSonawane2415 <surajsonawane0215@gmail.com>
Subject: [PATCH] selftests/vdso: Add linux/sched.h to fix CLONE_NEWTIME build error
Date: Wed, 2 Oct 2024 20:58:49 +0530 [thread overview]
Message-ID: <20241002152849.111841-1-surajsonawane0215@gmail.com> (raw)
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@gmail.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
next reply other threads:[~2024-10-02 15:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 15:28 SurajSonawane2415 [this message]
2024-10-02 22:39 ` [PATCH] selftests/vdso: Add linux/sched.h to fix CLONE_NEWTIME build error Shuah Khan
2024-10-02 22:51 ` Jason A. Donenfeld
2024-10-03 22:26 ` Shuah Khan
2024-10-03 11:52 ` [PATCH] selftests: vDSO: fix compile error for vdso_test_getrandom SurajSonawane2415
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241002152849.111841-1-surajsonawane0215@gmail.com \
--to=surajsonawane0215@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox