[PATCH] next: microblaze: Fix build failure

From: Guenter Roeck
Date: Sat Jan 03 2015 - 09:53:38 EST


Microblaze build in linux-next fails with

arch/microblaze/kernel/timer.c:224:2: error:
implicit declaration of function 'timecounter_init'

Caused by missing include file in microblaze timer code.

Fixes: 74d23cc704d1 ("time: move the timecounter/cyclecounter code into its own file")
Cc: Richard Cochran <richardcochran@xxxxxxxxx>
Cc: Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
arch/microblaze/kernel/timer.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c
index dd96f0e..c897745 100644
--- a/arch/microblaze/kernel/timer.c
+++ b/arch/microblaze/kernel/timer.c
@@ -17,6 +17,7 @@
#include <linux/clockchips.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
+#include <linux/timecounter.h>
#include <asm/cpuinfo.h>

static void __iomem *timer_baseaddr;
--
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/