Skip to content

Commit 459fa24

Browse files
sfrothwelldlezcano
authored andcommitted
clocksource: Explicitly include linux/clocksource.h when needed
The kbuild test robot reported errors in these files when doing an ia64 allmodconfig build. drivers/clocksource/timer-sun5i.c:52:21: error: field 'clksrc' has incomplete type struct clocksource clksrc; ^~~~~~ drivers/clocksource/cadence_ttc_timer.c:92:21: error: field 'cs' has incomplete type struct clocksource cs; ^~ (and many more errors for these files) Cc: Michal Simek <[email protected]> Cc: "Sören Brinkmann" <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: Michal Simek <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 3db1200 commit 459fa24

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/clocksource/cadence_ttc_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <linux/clk.h>
1919
#include <linux/interrupt.h>
2020
#include <linux/clockchips.h>
21+
#include <linux/clocksource.h>
2122
#include <linux/of_address.h>
2223
#include <linux/of_irq.h>
2324
#include <linux/slab.h>

drivers/clocksource/timer-sun5i.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <linux/clk.h>
1414
#include <linux/clockchips.h>
15+
#include <linux/clocksource.h>
1516
#include <linux/delay.h>
1617
#include <linux/interrupt.h>
1718
#include <linux/irq.h>

0 commit comments

Comments
 (0)