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: 10879 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AFA7723E56 for ; Wed, 22 Aug 2012 14:30:06 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id D9753A18D61 for ; Wed, 22 Aug 2012 14:29:54 +0000 (UTC) Received: by yenl8 with SMTP id l8so715566yen.11 for ; Wed, 22 Aug 2012 07:30:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=VV+fcDaBXcq5nY+Q2dgSkIehijnZXsxq2bTuvcAi94U=; b=IKUfzdYuWI6dgbHcqJb7ZLm8uKjQWjHFavmYkxzJrKKrTOTpLW2DV95caMHR4MOaB8 zssH4JrZ2Lz7MPvVurq4zFQmkRc4pcPFilddHtTVRFJxBKjlvDkGhNnmZ7OBH0kHJLnO y2B+KIGT07hIely7D8+CBtWW7EPtmxmF6vwDsJvo3FeOGnG97WVX+u5FN5mzu/GGglsc dB472MyEYhlp8LRSZ0Ekx66kKdmCmsCjpQ6iXaMYaF4KYtv9guMowxRpH5Gg0rz4xJzs goVUEGZea62suTaiRTdbB5IBb1PiWFIfdzjgMvfJNtKutIj9aGTchPx6qsmMY9ywX1NM lzQw== Received: by 10.50.159.196 with SMTP id xe4mr2336990igb.43.1345645805462; Wed, 22 Aug 2012 07:30:05 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp205468igc; Wed, 22 Aug 2012 07:30:04 -0700 (PDT) Received: by 10.216.30.83 with SMTP id j61mr11248165wea.168.1345645804076; Wed, 22 Aug 2012 07:30:04 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.186]) by mx.google.com with ESMTP id o4si48220027wiy.43.2012.08.22.07.30.03; Wed, 22 Aug 2012 07:30:04 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.186; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.186 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Shinya Kuribayashi , Stephen Boyd , Will Deacon 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-Gm-Message-State: ALoCoQk3KS9lB9HRA3nt7uHzH8gWHoCCq5y5ugrMb0MEHzoTcJTx1tqCWjhjLK07JxZTgLOosuda 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 --- 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",