# \[PATCH net-next\] arm\_arch\_timer: include clocksource.h directly

- Subsystems: ARM ARCHITECTED TIMER DRIVER, CLOCKSOURCE, CLOCKEVENT DRIVERS, THE REST
- Maintainers: Mark Rutland, Marc Zyngier, Daniel Lezcano, Thomas Gleixner, Linus Torvalds
- List: netdev
- 2 messages, 2 authors
- Page: https://ratatoskr.run/netdev/2015/01/4403522/t

## \[PATCH net-next\] arm\_arch\_timer: include clocksource.h directly

- From: Richard Cochran \<richardcochran@gmail.com\>
- Date: 2015-01-06 13:26:20 
- Message: https://ratatoskr.run/netdev/2015/01/4403522.md

```text
This driver makes use of the clocksource code. Previously it had only
included the proper header indirectly, but that chain was inadvertently
broken by 74d23cc "time: move the timecounter/cyclecounter code into its
own file."

This patch fixes the issue by including clocksource.h directly.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
 drivers/clocksource/arm_arch_timer.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 6a79fc4..8e67e72 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -15,6 +15,7 @@
 #include <linux/cpu.h>
 #include <linux/cpu_pm.h>
 #include <linux/clockchips.h>
+#include <linux/clocksource.h>
 #include <linux/interrupt.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
-- 
1.7.10.4
```

## Re: \[PATCH net-next\] arm\_arch\_timer: include clocksource.h directly

- From: David Miller \<davem@davemloft.net\>
- Date: 2015-01-06 18:27:23 
- Message: https://ratatoskr.run/netdev/2015/01/4403825.md

```text
From: Richard Cochran <richardcochran@gmail.com>
Date: Tue,  6 Jan 2015 14:26:13 +0100

> This driver makes use of the clocksource code. Previously it had only
> included the proper header indirectly, but that chain was inadvertently
> broken by 74d23cc "time: move the timecounter/cyclecounter code into its
> own file."
> 
> This patch fixes the issue by including clocksource.h directly.
> 
> Signed-off-by: Richard Cochran <richardcochran@gmail.com>

Applied.
```
