Skip to content

Commit 95706e7

Browse files
sravnborgandreas-gaisler
authored andcommitted
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>
1 parent b536adb commit 95706e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/sparc/kernel/time_64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <linux/clockchips.h>
3434
#include <linux/clocksource.h>
3535
#include <linux/platform_device.h>
36+
#include <linux/sched/clock.h>
3637
#include <linux/ftrace.h>
3738

3839
#include <asm/oplib.h>

0 commit comments

Comments
 (0)