sched/headers: Fix header to build standalone: <linux/sched_clock.h>
authorIngo Molnar <mingo@kernel.org>
Thu, 23 Sep 2021 18:42:44 +0000 (20:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 23 Feb 2022 07:21:32 +0000 (08:21 +0100)
Uses various kernel types that don't build standalone.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
include/linux/sched_clock.h

index 835ee87..cb41c5e 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef LINUX_SCHED_CLOCK
 #define LINUX_SCHED_CLOCK
 
+#include <linux/types.h>
+
 #ifdef CONFIG_GENERIC_SCHED_CLOCK
 /**
  * struct clock_read_data - data required to read from sched_clock()