Re: [PATCH] selftests/vdso: Add linux/sched.h to fix CLONE_NEWTIME build error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/2/24 09:28, SurajSonawane2415 wrote:
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.


Did you run "make headers" before building this test? It builds
just fine for me on my system.

+ Adding Jason Donenfeld

Signed-off-by: SurajSonawane2415 <surajsonawane0215@xxxxxxxxx>
---
  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"

thanks,
-- Shuah




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux