aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <[email protected]>2023-01-11 10:25:34 +0100
committerIngo Molnar <[email protected]>2023-01-11 10:31:57 +0100
commitcd9f5c3d3096e26fa128ae747f66383002001398 (patch)
tree198fc4545350a02a922d64570bd6ba730fd58fa1
parentd74f87f37672e71457bfcc14eca5eeb1d61b6438 (diff)
sched/cputime: Fix IA64 build error of missing arch_vtime_task_switch() prototype
The following commit: c89970202a11 ("cputime: remove cputime_to_nsecs fallback") Removed an <asm/cputime.h> inclusion from <linux/sched/cputime.h>, but this broke the IA64 build: arch/ia64/kernel/time.c:110:6: warning: no previous prototype for 'arch_vtime_task_switch' [-Wmissing-prototypes] Add in the missing <asm/cputime.h> header to fix it. Fixes: c89970202a11 ("cputime: remove cputime_to_nsecs fallback") Reported-by: kernel test robot <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: [email protected] Cc: Nicholas Piggin <[email protected]> Cc: Peter Zijlstra (Intel) <[email protected]> Cc: Alexander Gordeev <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/ia64/kernel/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c
index fa9c0ab8c6fc..83ef044b63ef 100644
--- a/arch/ia64/kernel/time.c
+++ b/arch/ia64/kernel/time.c
@@ -25,6 +25,7 @@
#include <linux/platform_device.h>
#include <linux/sched/cputime.h>
+#include <asm/cputime.h>
#include <asm/delay.h>
#include <asm/efi.h>
#include <asm/hw_irq.h>