From 05dee9c7ebc06719df2dd11bfd3bea96aeaf9707 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Tue, 9 Jun 2015 12:46:46 +0800 Subject: [PATCH] nios2: Export get_cycles nios2 is the only architecture that does not inline get_cycles and does not export it. This breaks crypto as it uses get_cycles in a number of modules. Reported-by: Guenter Roeck Signed-off-by: Herbert Xu --- arch/nios2/kernel/time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c index 7f4547418ee1..be186a75f622 100644 --- a/arch/nios2/kernel/time.c +++ b/arch/nios2/kernel/time.c @@ -8,6 +8,7 @@ * for more details. */ +#include #include #include #include @@ -106,6 +107,7 @@ cycles_t get_cycles(void) { return nios2_timer_read(&nios2_cs.cs); } +EXPORT_SYMBOL(get_cycles); static void nios2_timer_start(struct nios2_timer *timer) { -- 2.20.1