Skip to content

Commit 086ee46

Browse files
bjdooks-ctKAGA-KOKO
authored andcommitted
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) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 1638b8f commit 086ee46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/time/sched_clock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include <linux/seqlock.h>
1818
#include <linux/bitops.h>
1919

20+
#include "timekeeping.h"
21+
2022
/**
2123
* struct clock_read_data - data required to read from sched_clock()
2224
*

0 commit comments

Comments
 (0)