Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1296719pxb; Wed, 6 Apr 2022 14:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH8yX68bhGllmDfIE+MPpeQRPvSkwp6zQGbwJGzTXoziWSXFweLhgT7o5mhnzjuBLDKex9 X-Received: by 2002:a17:907:16a0:b0:6e7:f79b:98d7 with SMTP id hc32-20020a17090716a000b006e7f79b98d7mr10166881ejc.36.1649279223806; Wed, 06 Apr 2022 14:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649279223; cv=none; d=google.com; s=arc-20160816; b=CzJg+frX0vihilPoETTXZAzclMGdVa3T5uoiDonpGCMrjU9BaJBBV6tlJeYhdpD9qd dOK8UTVT0dDKn0f8+S0VjPiz22quaAo5NggUguhLJk5TQnD6l3I20u6nobf879lHqGRb nDxYWc4JxTZ120OPoPLDrx2a3lj5d1gAgz9Uy7WGAUaT7ZqvQ9eCBGOfrQiZVOxzJYOG UrlQli14Q4ZZSuKf5glN3aseG2d28VQwIwrjRVhIfnaySQ4o2kso9jVptddlKrl3lWOO ggbcO9JZXbD6OinyPBYkoj3f/yCvPA4kBmFmAzZzRmu5x8o3Yy36EEkI3IoRguDhyVTI SmXg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eVsY+RPiO3EVj4xXxL1dzNyuEJZtwczNeW+zmWs+Kmc=; b=Oya0p9d2XDocrQB647qdPS2BdLDd4KJgw4S8tbis224gBuVgsvqyjaLG5I8+2BDpc9 nXiEpO2Lf3m57HjOjFzZvgsQpEP7ayx/s8xci0TpC00ISf3RYMg/DUE+oboYNaIYs6xa mKF0k95Ebs32TRaQpf9Y50b4VKDirJZinNbqNxCYbLJSNvdQAD8FkMte32LfvuPSGQdl O06YiN/TMg2W28NxVPtI3xDKTxt8dmgGDqHSemaJyxnXS5NY1b537xLR/vIpNNN+YyGl UCeAPpQROJFYgifPBKh5VOycBx662/BLtSq26RLHbb6QXblO9yoCbt0f46jLcLw7/1DW 0NHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u4gTRVEm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a17090654c300b006e7f189009esi8385827ejp.187.2022.04.06.14.06.39; Wed, 06 Apr 2022 14:07:03 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u4gTRVEm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232544AbiDFTu2 (ORCPT + 99 others); Wed, 6 Apr 2022 15:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232417AbiDFTtg (ORCPT ); Wed, 6 Apr 2022 15:49:36 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3D518BCFD; Wed, 6 Apr 2022 11:27:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 7D895CE24A6; Wed, 6 Apr 2022 18:27:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A197C385A1; Wed, 6 Apr 2022 18:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649269643; bh=Litla4dQ6FJ4XIrqe0GBrFnwKM6GLSoVgCqTTyuj7+g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u4gTRVEmtREQeHX9NOyZ2RT/psDtnsZKTL/7LTxomCqWgMft/1x4jBB7eQjCPtIgD rKGXcewE4Z71iK1Y7m3uF9rmYwqMUnMeRh9ziChagWJq6+KhqqE1FLP+jFUY3AROC0 Kc8uBue+hR0yBjzZ79jFnkibXxpQrKAgFSjC2ERE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marc Zyngier , Arnd Bergmann , Catalin Marinas , James Morse Subject: [PATCH 4.9 17/43] arm64: arch_timer: avoid unused function warning Date: Wed, 6 Apr 2022 20:26:26 +0200 Message-Id: <20220406182437.184811467@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220406182436.675069715@linuxfoundation.org> References: <20220406182436.675069715@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Signed-off-by: Greg Kroah-Hartman --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -444,6 +444,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