From patchwork Tue Oct 2 21:11:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 148025 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5641168lji; Tue, 2 Oct 2018 14:12:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV62jmMns0nYyY5PE0Dp/FbmOSHvFCrnSRZJxLMpk4YYpuxr/jZWguvDjXu3yuaHHn0xHF6pd X-Received: by 2002:a63:6c04:: with SMTP id h4-v6mr16023431pgc.290.1538514755377; Tue, 02 Oct 2018 14:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538514755; cv=none; d=google.com; s=arc-20160816; b=h35W9h42hIk0Z6tRFY5iGdOOjI92CgS3TQ0AoiFiaeO47HXpU0rM7rG7cmRsv0wD3M FQhG7x932Q09T1TCd12wy7kPPjLlYIzQ3wbTkTVF2EfE1FviHsgEWKZYes1UiOTQz5JW ux22VUCIuvdsBIcDxlQyp90ZaWzXP15qp9ezbO60e6VOtmp9WMqGZLrA7wJJe4cNaRpO QOTcfQWps53EzcXJVHjMvztsefQeocgEjEdWgMEGZOtMqmFupgUyZnyj7doeMchRVg+C IY7Uyg4RBgEkdmd9T5jCLrFMnWTvahJfOWZRJtAcygZTeniwzE65s+hSsNQxKH3Zt1Ev FLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=n1DY8KG7MQ7aZ0HbqkCXvj0byJf2XgL14LN1o+rzwgA=; b=MiGvSYXw5N6MGpTJnCeah4BCcZzurQrv9JHv0Pm24zdQ/uqpZcJrVigwrClfxlwWZA F769K8qmgCxIyF+nno0NcF1PIZesXCR5wK3aiyafuctCzkQ61IjgMmrnTmDvA3LQTPkv uoj9Ta4Y5ylOEsXtTelsCe24Z8LQ07vcoTtt1c00MwkNPRrODUSMxdyqsQ+wgBgAznjm Lrpl+9ZtgWia7k9qKilGoWoJP6m5pB8Vsn44HeIcscZ1FOx0dOYgkQi2V3TojRq1uz2A JdBRCWLvr3yFJmOs5XDEsBwfN2L4MzndD68ym2ouCWxABIPhJ7UKtQaWNLYkVWjOdPwU NfIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si16012702pgn.309.2018.10.02.14.12.34; Tue, 02 Oct 2018 14:12:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728413AbeJCD5t (ORCPT + 32 others); Tue, 2 Oct 2018 23:57:49 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:53701 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbeJCD5t (ORCPT ); Tue, 2 Oct 2018 23:57:49 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1M7auL-1g62mr0qsv-0080vt; Tue, 02 Oct 2018 23:12:16 +0200 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1M7auL-1g62mr0qsv-0080vt; Tue, 02 Oct 2018 23:12:16 +0200 From: Arnd Bergmann To: Catalin Marinas , Will Deacon Cc: Arnd Bergmann , Mark Rutland , Marc Zyngier , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: arch_timer: avoid unused function warning Date: Tue, 2 Oct 2018 23:11:44 +0200 Message-Id: <20181002211214.2672576-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:CJRvB1nT2xHgVp25Uun+bN7R5JwgkVt8LEcBJpQGDFyLk3RLvzM EROZeiG0AqeUFQHr5Q3tX/n1iR22tpo3euQjY6LkN3fkoFlIMsFopF94OwEcC3QfC/si9CI 0ykWpWsmeQkCyEh5xJulftxOffl+29CRZNE2DWR888xsClsaMsB5jVfGOYiy2H4G3MTGkCy xFuAb026cxO1MMNmc6+yQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:/JyWiJX2rA4=:uyUj5Xpvmr+Kqzjs/cQCcz 8xE58r3kt+woSzcyu5H9fZ5CGpLmDG3lHG+fPZEEFkFSQ0ED4EVJKzvBSWM9vrbwzMi1Vi2As SgTX9DcStVIzUzAgRVN8qL0A+2lp3jaPG92+25jLvganM4si6FCJwyCYgsQidzBX5o1UDIN+v 7T/GYj5EGxq+adUzCv68L0NThI3P90GrKfitdysuPYSKSgQCVH0WbIHQZ0clRgBwERTCNQWvA pKRz3mbKVzjIQL3O2pkbgqI2BO8XFII9tQteN/UCPp4Qo6PLwGZuBf2oO4waprfoiMPaorESg /SHb0Rcj+cunh2yQtOLIUXsNEhls87aqFQURKAN1YpmkKFQYu1nFbZWZ8HEJVWa3s9L/BxwYj YQmZnEnKx1fXKK7XqYqaJShctuRTNuJRlVwOxn06bHXChkRXclTiVaNj42rfMTSCyyl1ocgIT bSRvntDaGye0QcoEVv8cFkDKiues6AgpX3qquNuOAMs2CeEMHs2HFcrNVh4b0r26mGaGHh5VQ BdxXCrBqqnejSpkI2Sz6hgHR9IYzhLHB4S7IoeCDuvqZbwJjLIIwigvuOb7eZTzSmjwAuyhSe i7l+i1QvQ1mkd03OarXU/izfOrVHaP/NVYcr1FMUHoQHvrnTXeFdAZ/gHLx0EsCpahWGgkF4L 8InJ/VtcDBHkp5EPahNl7mDQfUx87Cw+/7yK2UxpHpLpgki0fnR75rdVIAnioSKTmo9o= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arm64_1188873_read_cntvct_el0() is protected by the correct CONFIG_ARM64_ERRATUM_1188873 #ifdef, but the only reference to it is also inside of an CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND section, and causes a warning if that is disabled: drivers/clocksource/arm_arch_timer.c:323:20: error: 'arm64_1188873_read_cntvct_el0' defined but not used [-Werror=unused-function] Since the erratum requires that we always apply the workaround in the timer driver, select that symbol as we do for SoC specific errata. Fixes: 95b861a4a6d9 ("arm64: arch_timer: Add workaround for ARM erratum 1188873") Signed-off-by: Arnd Bergmann --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 Acked-by: Marc Zyngier diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 130f3a766aef..0661c6103c21 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -483,6 +483,7 @@ config ARM64_ERRATUM_1024718 config ARM64_ERRATUM_1188873 bool "Cortex-A76: MRC read following MRRC read of specific Generic Timer in AArch32 might give incorrect result" default y + select ARM_ARCH_TIMER_OOL_WORKAROUND help This option adds work arounds for ARM Cortex-A76 erratum 1188873