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: 1540031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 7D059DFFAD for ; Wed, 3 Oct 2012 01:01:10 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TJDIq-0005H3-MT; Wed, 03 Oct 2012 00:59:08 +0000 Received: from mail20.dotsterhost.com ([66.11.232.73]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1TJDIm-0005Gp-Eu for linux-arm-kernel@lists.infradead.org; Wed, 03 Oct 2012 00:59:06 +0000 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 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) X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [66.11.232.73 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Russell King , Will Deacon X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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