From patchwork Wed Aug 22 14:29:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1361481 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 1E683DF280 for ; Wed, 22 Aug 2012 14:34:16 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4Bwj-0003Q8-Kw; Wed, 22 Aug 2012 14:30:13 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4BwT-0003PN-VY for linux-arm-kernel@lists.infradead.org; Wed, 22 Aug 2012 14:30:03 +0000 Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0M6t73-1TpZR90snV-00wn82; Wed, 22 Aug 2012 16:29:54 +0200 From: Arnd Bergmann To: Russell King Subject: [PATCH 1/4] ARM: export read_current_timer Date: Wed, 22 Aug 2012 16:29:37 +0200 Message-Id: <1345645780-2749-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1345645780-2749-1-git-send-email-arnd@arndb.de> References: <1345645780-2749-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:jsG2V2QtdXovjnhR6YlCzr3oo+O9JmsKDiiypcy0iF7 5ym9l6QKO4b86yRfb+oaXSb9OItRPEI9cd9NRIGzE7YuIntK4S NI0JJfwkgjXG7r3LkbSQjNHN5Le1CaUVUUZq4/BVFGteP7bXLx SvTVZDJ3KxAGxEBpkU/ictkYv1jhhZgUa2Qsj8uuFbwYARjck6 /KZT3yWBci5aBXCCH38g0ywbKv0nx9VwPKXa6QnuoqAg50AS7o 21xQmju8xI9cRqkP1URJpd1BuDEJmUZcLDqq8yiwb2L2ok1d2y srhyx8a+WRfD4Y3frBaAMRsSnon14nwNjsI1Uz5E0XmROGCLjb mgkHynk+OuS28Z4VkSjMJ1/QRRmo5kUhLEdR2HArnYF8Vr9xrP xs/sPPQSMWNcg== 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 [212.227.126.186 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Arnd Bergmann , Stephen Boyd , Will Deacon , linux-kernel@vger.kernel.org, Shinya Kuribayashi , linux-arm-kernel@lists.infradead.org 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: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org read_current_timer is used in the get_cycles() function when ARM_ARCH_TIMER is set, and that function can be inlined into driver modules, so we should export the function to avoid errors like ERROR: "read_current_timer" [drivers/video/udlfb.ko] undefined! ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined! Signed-off-by: Arnd Bergmann Cc: Shinya Kuribayashi Cc: Stephen Boyd Cc: Will Deacon Cc: Russell King Acked-by: Stephen Boyd Acked-by: Will Deacon Acked-by: Shinya Kuribayashi --- arch/arm/kernel/arch_timer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c index cf25880..6327d1f 100644 --- a/arch/arm/kernel/arch_timer.c +++ b/arch/arm/kernel/arch_timer.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -232,6 +233,7 @@ int read_current_timer(unsigned long *timer_val) *timer_val = arch_counter_get_cntpct(); return 0; } +EXPORT_SYMBOL_GPL(read_current_timer); static struct clocksource clocksource_counter = { .name = "arch_sys_counter",