Skip to contentSkip to conversation

timers/sched_clock: include local timekeeping.h for missing declarations

PATCH Applied Ben Dooks (Codethink) 2 participants 2 messages Oct 22, 2019 – Oct 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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?

---
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]

---
 kernel/time/sched_clock.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/time/sched_clock.c +2 -0
index 142b07619918..dbd69052eaa6 100644
@@ -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()
  *
Signature · 1 line
2.23.0
#1 lore raw

[tip: timers/urgent] timers/sched_clock: Include local timekeeping.h for missing declarations

The following commit has been merged into the timers/urgent branch of tip:

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) <[email protected]>
AuthorDate:    Tue, 22 Oct 2019 14:12:26 +01:00
Committer:     Thomas Gleixner <[email protected]>
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?

---
 kernel/time/sched_clock.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/time/sched_clock.c +2 -0
index 142b076..dbd6905 100644
@@ -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()
  *