sched/cputime: Fix IA64 build error of missing arch_vtime_task_switch() prototype
authorIngo Molnar <mingo@kernel.org>
Wed, 11 Jan 2023 09:25:34 +0000 (10:25 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 11 Jan 2023 09:31:57 +0000 (10:31 +0100)
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 <lkp@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/ia64/kernel/time.c

index fa9c0ab8c6fc955b25ac7334441a4d46274f9bdb..83ef044b63efed9b0863c66a0f89d0045fec4150 100644 (file)
@@ -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>