sparc64: Fix prototype warning for sched_clock
authorSam Ravnborg <sam@ravnborg.org>
Sat, 30 Mar 2024 09:57:44 +0000 (10:57 +0100)
committerAndreas Larsson <andreas@gaisler.com>
Mon, 22 Apr 2024 13:33:06 +0000 (15:33 +0200)
Fix the following warning:
arch/sparc/kernel/time_64.c:880:20: warning: no previous prototype for ‘sched_clock’

Add the missing include to pick up the prototype.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Tested-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240330-sparc64-warnings-v1-8-37201023ee2f@ravnborg.org
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/kernel/time_64.c

index 89fb05f9060959d49d79493dce5f231af2f741c8..60f1c8cc5363e6947ac23d0404206340ade4c168 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/clockchips.h>
 #include <linux/clocksource.h>
 #include <linux/platform_device.h>
+#include <linux/sched/clock.h>
 #include <linux/ftrace.h>
 
 #include <asm/oplib.h>