summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2024-03-30 10:57:44 +0100
committerAndreas Larsson <andreas@gaisler.com>2024-04-22 15:33:06 +0200
commit95706e717c4f55ca62025c151451ccc28863d085 (patch)
tree4c28a659329c9fe88e37b8c68f8a02db2d3130d0 /arch
parentb536adbcf872f970f87a05b0a7344d3f6313ac95 (diff)
downloadlinux-stable-95706e717c4f55ca62025c151451ccc28863d085.tar.gz
linux-stable-95706e717c4f55ca62025c151451ccc28863d085.tar.bz2
linux-stable-95706e717c4f55ca62025c151451ccc28863d085.zip
sparc64: Fix prototype warning for sched_clock
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/time_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c
index 89fb05f90609..60f1c8cc5363 100644
--- a/arch/sparc/kernel/time_64.c
+++ b/arch/sparc/kernel/time_64.c
@@ -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>