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: 10624037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 801AE1515 for ; Tue, 2 Oct 2018 21:12:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CF1A26E76 for ; Tue, 2 Oct 2018 21:12:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60C49283CF; Tue, 2 Oct 2018 21:12:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 04D0326E76 for ; Tue, 2 Oct 2018 21:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=hDVGXNmr0q3YsX8uyFAemITVKXrgmDOKY2mrFwS22os=; b=XE+ uYXTRd+DV6nSCtJZUkRQMtTRYihWg3EFuZytQk4Q8MN+yY10wD7xCdvPWzUkMGR7LS6ZVMbkRFSK9 8uVORwFQ9PqTz0yLxGC5g8sQ0sKP3p3KZaS0NmtHF54iw2cLeOLroFuZ+k/5iBFn+Rc1QPtZmV1g/ mhxzGx6xFNXPRAWbjQfcztSk/LvDyivbEmKS7hrH6RNFek5MjsfctGdXKJ4glWqmdXC1kEiUXyPgT Jqrq3Cq+CKgN0tPFIkwB8SoH2haWJa1TqYgn5A1j9FJTiumttjgioaSuWVKc+eISGuRTIV0ABvCX3 wLW2UcSWYNEDaS0iAHq1th8bVW4cnrw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7Ry5-0006ND-OA; Tue, 02 Oct 2018 21:12:33 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7Ry1-0006MK-Ul for linux-arm-kernel@lists.infradead.org; Tue, 02 Oct 2018 21:12:31 +0000 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 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181002_141230_295610_5FAF2D67 X-CRM114-Status: GOOD ( 12.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Arnd Bergmann , Ard Biesheuvel , Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Marc Zyngier --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) 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