From patchwork Wed Oct 3 00:52:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Greer X-Patchwork-Id: 1540021 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A0C7BDFFAD for ; Wed, 3 Oct 2012 00:59:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753503Ab2JCA67 (ORCPT ); Tue, 2 Oct 2012 20:58:59 -0400 Received: from mail20.dotsterhost.com ([66.11.232.73]:38643 "EHLO mail20.dotsterhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751407Ab2JCA67 (ORCPT ); Tue, 2 Oct 2012 20:58:59 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Tue, 02 Oct 2012 20:58:58 EDT Received: (qmail 22361 invoked from network); 3 Oct 2012 00:52:18 -0000 Received: from unknown (HELO blue.animalcreek.com) (mgreer@animalcreek.com@[68.3.93.7]) by 66.11.232.73 with SMTP; 3 Oct 2012 00:52:18 -0000 Received: by blue.animalcreek.com (Postfix, from userid 1001) id 59CF765B45; Tue, 2 Oct 2012 17:52:18 -0700 (MST) Date: Tue, 2 Oct 2012 17:52:18 -0700 From: "Mark A. Greer" To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Will Deacon , Russell King Subject: [PATCH] ARM: arch timer: Export 'read_current_timer' symbol Message-ID: <20121003005218.GA23874@animalcreek.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: "Mark A. Greer" Commit 923df96b9f31b7d08d8438ff9677326d9537accf (ARM: 7451/1: arch timer: implement read_current_timer and get_cycles) modifies get_cycles() such that it calls read_current_timer(). Unfortunately, the 'read_current_timer' symbol is not exported so when a driver that calls get_cycles() is built as a module, an undefined reference error occurs. A good example is the crypto/tcrypt.c (CONFIG_CRYPTO_TEST) driver because it calls get_cycles() and can only be built as a module. Fix this error by exporting the 'read_current_timer' symbol. CC: Will Deacon CC: Russell King Signed-off-by: Mark A. Greer --- This patch applies against current arm-soc/for-next branch. arch/arm/kernel/armksyms.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c index 60d3b73..e7a29fe 100644 --- a/arch/arm/kernel/armksyms.c +++ b/arch/arm/kernel/armksyms.c @@ -156,3 +156,7 @@ EXPORT_SYMBOL(__gnu_mcount_nc); #ifdef CONFIG_ARM_PATCH_PHYS_VIRT EXPORT_SYMBOL(__pv_phys_offset); #endif + +#ifdef CONFIG_ARM_ARCH_TIMER +EXPORT_SYMBOL(read_current_timer); +#endif