From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Xu Subject: nios2: Export get_cycles Date: Tue, 9 Jun 2015 12:46:46 +0800 Message-ID: <20150609044646.GA6892@gondor.apana.org.au> References: <3181127.KGS6GDHCq6@tachyon.chronox.de> <55766C3A.3070101@roeck-us.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Stephan Mueller , Peter Zijlstra , Andy Shevchenko , Jim Davis , Stephen Rothwell , Linux-Next , linux-kernel@vger.kernel.org, "David S. Miller" , linux-crypto@vger.kernel.org, Waiman Long , Ingo Molnar , x86 To: Guenter Roeck Return-path: Content-Disposition: inline In-Reply-To: <55766C3A.3070101@roeck-us.net> Sender: linux-next-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Mon, Jun 08, 2015 at 09:31:54PM -0700, Guenter Roeck wrote: > > nios2 still fails to build with > > ERROR: "get_cycles" [crypto/jitterentropy.ko] undefined! It's the only arch that doesn't inline get_cycles and doesn't export it. ---8<--- 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 diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c index 7f45474..be186a7 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) { -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt