ce15971
read_current_timer is used in the get_cycles() function when
ce15971
ARM_ARCH_TIMER is set, and that function can be inlined into
ce15971
driver modules, so we should export the function to avoid
ce15971
errors like
ce15971
ce15971
ERROR: "read_current_timer" [drivers/video/udlfb.ko] undefined!
ce15971
ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined!
ce15971
ce15971
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
ce15971
Cc: Shinya Kuribayashi <shinya.kuribayashi.px@xxxxxxxxxxx>
ce15971
Cc: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
ce15971
Cc: Will Deacon <will.deacon@xxxxxxx>
ce15971
Cc: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
ce15971
---
ce15971
 arch/arm/kernel/arch_timer.c |    2 ++
ce15971
 1 file changed, 2 insertions(+)
ce15971
ce15971
diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c
ce15971
index cf25880..6327d1f 100644
ce15971
--- a/arch/arm/kernel/arch_timer.c
ce15971
+++ b/arch/arm/kernel/arch_timer.c
ce15971
@@ -14,6 +14,7 @@
ce15971
 #include <linux/device.h>
ce15971
 #include <linux/smp.h>
ce15971
 #include <linux/cpu.h>
ce15971
+#include <linux/export.h>
ce15971
 #include <linux/jiffies.h>
ce15971
 #include <linux/clockchips.h>
ce15971
 #include <linux/interrupt.h>
ce15971
@@ -232,6 +233,7 @@ int read_current_timer(unsigned long *timer_val)
ce15971
 	*timer_val = arch_counter_get_cntpct();
ce15971
 	return 0;
ce15971
 }
ce15971
+EXPORT_SYMBOL_GPL(read_current_timer);
ce15971
 
ce15971
 static struct clocksource clocksource_counter = {
ce15971
 	.name	= "arch_sys_counter",
ce15971
-- 
ce15971
1.7.10