summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>2019-10-22 14:12:26 +0100
committerThomas Gleixner <tglx@linutronix.de>2019-10-23 14:48:23 +0200
commit086ee46b08634a999bcd1707eabe3b0dc1806674 (patch)
tree1f64ee4748a2958abf45e33d6416bd552fc33695 /kernel/time
parent1638b8f096ca165965189b9626564c933c79fe63 (diff)
downloadlinux-086ee46b08634a999bcd1707eabe3b0dc1806674.tar.gz
linux-086ee46b08634a999bcd1707eabe3b0dc1806674.tar.bz2
linux-086ee46b08634a999bcd1707eabe3b0dc1806674.zip
timers/sched_clock: Include local timekeeping.h for missing declarations
Include the timekeeping.h header to get the declaration of the sched_clock_{suspend,resume} functions. Fixes the following sparse warnings: kernel/time/sched_clock.c:275:5: warning: symbol 'sched_clock_suspend' was not declared. Should it be static? kernel/time/sched_clock.c:286:6: warning: symbol 'sched_clock_resume' was not declared. Should it be static? Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20191022131226.11465-1-ben.dooks@codethink.co.uk
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/sched_clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c
index 142b07619918..dbd69052eaa6 100644
--- a/kernel/time/sched_clock.c
+++ b/kernel/time/sched_clock.c
@@ -17,6 +17,8 @@
#include <linux/seqlock.h>
#include <linux/bitops.h>
+#include "timekeeping.h"
+
/**
* struct clock_read_data - data required to read from sched_clock()
*