Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1207849pxb; Fri, 1 Apr 2022 07:24:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2MHJacYYQfqRG3kr75OIo3GtHaxCYnEhsg6Ukf3v7FxOBOIE1G7E56MWxjq1/QgLKBx7V X-Received: by 2002:a63:77ca:0:b0:386:25a5:5ed with SMTP id s193-20020a6377ca000000b0038625a505edmr15147198pgc.30.1648823084161; Fri, 01 Apr 2022 07:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648823084; cv=none; d=google.com; s=arc-20160816; b=JyHe7eBLjijevCH4QEe01kaEjXOOPv5dSlpiUznJXJ8z6TDy88nwEJoJWVlzHcXth3 felI5kcgy4g9lPhPIz30ONMnu5A9PjSQ3x8YFn/2iH9MyRb1XuUxOB6B891cxn8hsRd5 ntwsqSBgm7E7jyDdoC272p08LnUe2bEzng281udlbeAD/5/sy2MsZ92RtNYEwbtH4zME 00Yn90jB1JIdJ5MiO37Vpj2eCrYMV0nXuNvFUzjCJHztitoLqj0ln5zb3fuxvvb5iUJa yH5Flr0SKykrfyMsTH/dz9anaJL/yOLxESineChZ3BlEroMoF9FBFcHKRGr4DWg9bxvF in+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0J3fElrd6DRcsbshJaneLiW/G8+hSdyWa/JL4+QMJu4=; b=W+VPjSTbK8LO9hNzRcfBpyfHH5y0ErcphVHaAeYk25SA+oAA0hd6FO/Y+dWVwdNYeg 4roEDTKWKRmBdlOu+tzy5iWLIFUqL9HgVMvxv4nJCY8wGk6pMT42HXbpBqNFYwmpKjHA vIQ7GptP4zA9Xthf1vMbuhurwhBQscZm0bvHkmbr+Vj7MbpVEIiB3kWA/A8BTrE1dTmn IwomC0JRX5YAypie9I++H9jbVhKGsrSWwEF1ybNDkmvgGIMuak0y5zf7tCsIqI392WQ1 syOAvvBn2F69wNzW6GyVPGLhqvZxhwDQZJecuwavo4dNxyVk/U7aBu2DbXgGaVS8qM6A 2VdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a056a000a9000b004fade889fd0si2771364pfl.15.2022.04.01.07.24.30; Fri, 01 Apr 2022 07:24:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234876AbiCaSgW (ORCPT + 99 others); Thu, 31 Mar 2022 14:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234701AbiCaSgS (ORCPT ); Thu, 31 Mar 2022 14:36:18 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 48E1663BD2; Thu, 31 Mar 2022 11:34:31 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0CF9E13D5; Thu, 31 Mar 2022 11:34:31 -0700 (PDT) Received: from eglon.cambridge.arm.com (eglon.cambridge.arm.com [10.1.196.218]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 639763F718; Thu, 31 Mar 2022 11:34:30 -0700 (PDT) From: James Morse To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: james.morse@arm.com, catalin.marinas@arm.com Subject: [stable:PATCH v4.14.274 02/27] arm64: arch_timer: avoid unused function warning Date: Thu, 31 Mar 2022 19:33:35 +0100 Message-Id: <20220331183400.73183-3-james.morse@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220331183400.73183-1-james.morse@arm.com> References: <20220331183400.73183-1-james.morse@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 040f340134751d73bd03ee92fabb992946c55b3d upstream. 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") Acked-by: Marc Zyngier Signed-off-by: Arnd Bergmann Signed-off-by: Catalin Marinas Signed-off-by: James Morse --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 85310128a65e..7c205e0fd44b 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -461,6 +461,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 -- 2.30.2