* [PATCH] timers/sched_clock: include local timekeeping.h for missing declarations
@ 2019-10-22 13:12 Ben Dooks (Codethink)
2019-10-23 12:50 ` [tip: timers/urgent] timers/sched_clock: Include " tip-bot2 for Ben Dooks (Codethink)
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks (Codethink) @ 2019-10-22 13:12 UTC (permalink / raw)
To: linux-kernel; +Cc: Ben Dooks (Codethink), Thomas Gleixner, linux-kernel
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>
---
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
---
kernel/time/sched_clock.c | 2 ++
1 file changed, 2 insertions(+)
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()
*
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip: timers/urgent] timers/sched_clock: Include local timekeeping.h for missing declarations
2019-10-22 13:12 [PATCH] timers/sched_clock: include local timekeeping.h for missing declarations Ben Dooks (Codethink)
@ 2019-10-23 12:50 ` tip-bot2 for Ben Dooks (Codethink)
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Ben Dooks (Codethink) @ 2019-10-23 12:50 UTC (permalink / raw)
To: linux-tip-commits
Cc: Ben Dooks (Codethink),
Thomas Gleixner, Ingo Molnar, Borislav Petkov, linux-kernel
The following commit has been merged into the timers/urgent branch of tip:
Commit-ID: 086ee46b08634a999bcd1707eabe3b0dc1806674
Gitweb: https://git.kernel.org/tip/086ee46b08634a999bcd1707eabe3b0dc1806674
Author: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
AuthorDate: Tue, 22 Oct 2019 14:12:26 +01:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Wed, 23 Oct 2019 14:48:23 +02:00
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
---
kernel/time/sched_clock.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c
index 142b076..dbd6905 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()
*
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-23 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 13:12 [PATCH] timers/sched_clock: include local timekeeping.h for missing declarations Ben Dooks (Codethink)
2019-10-23 12:50 ` [tip: timers/urgent] timers/sched_clock: Include " tip-bot2 for Ben Dooks (Codethink)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).