Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1210637pxb; Wed, 6 Apr 2022 11:24:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH2sU07l9ci55ZCpNXuFG0zuG3GBWucqITbh2ixmzOdHGe1iZE4Emhx613soBZS51WWn+8 X-Received: by 2002:a17:902:d714:b0:153:2e9:3bcc with SMTP id w20-20020a170902d71400b0015302e93bccmr9940713ply.83.1649269492814; Wed, 06 Apr 2022 11:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649269492; cv=none; d=google.com; s=arc-20160816; b=XgayEAljPSyXvhhAK2w5ICn1xHjzTHyNGftYYppnJ9s5R+h4xCggemU9lNEU/c4mXS Heo3NzTS3baz0glZ7+riYVDO1rEtJ+inGgTWjngSVdSyhw4sTdrtJIoMl1fi4exc4Db1 xbkP1DwPT6LrUeAmPcrJXLDOCFRo8Hi8V6PF9pn1A1PWkJ9vD1qMbVlp5nbHKF4i1/l0 IeMuFYSJvbvo++ezfS213uqmY4wTJRk23f/y7whV+jBcRxllQN7f2Va5lTU2HelvXXh6 z9d9GIbcP/MsGXtiEolXmxRwGgStTHAen4Gm/haKUZJTH6i+E/uJxojKMC/7YWbxrCyr PwfQ== 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=uhKur+b9ko/z0ulFd9Bbuo6AazLpeUd1TvYs8UkSldE=; b=KS5M5CzgrM/nRTEBnmH5klcGnLkzq6mzLvJmAoSXGoVPskZv0oKusCqPnb2lX+Ca/6 vXAocwl2c7IBiK5p7AukNQ7tk8VXhj+VwCpKUqBcR3L/8AdtkHhXWQtOimOJoQfQ1VlL 5ZW/hIUuD5mVzAMNxuflRKrkPrGWlVD+eej+PSFxit0Xf/+tyTxj4SiwocvPmXPJZKPe Ttm/YRkWe1UYRTtbMY5+FWJDYs5h3NNpxazfh1AkvJN2IwiiM/FfT3VM7IeySuxFWjsE SpiEzCAJ15wOSrIKvH8wmTGBdw71q7AfVc4Ydu0hh0UsEPPd0cdbwztRye6XToLzD/Zv SMTQ== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id lp3-20020a17090b4a8300b001c69ee187d0si5965625pjb.171.2022.04.06.11.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 11:24:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58163FFF65; Wed, 6 Apr 2022 11:07:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240239AbiDFSJZ (ORCPT + 99 others); Wed, 6 Apr 2022 14:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240454AbiDFSHy (ORCPT ); Wed, 6 Apr 2022 14:07:54 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1CD018F21C; Wed, 6 Apr 2022 09:46:17 -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 88F7012FC; Wed, 6 Apr 2022 09:46:17 -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 DBF083F73B; Wed, 6 Apr 2022 09:46:16 -0700 (PDT) From: James Morse To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: James Morse , Catalin Marinas Subject: [stable:PATCH v4.9.309 17/43] arm64: arch_timer: avoid unused function warning Date: Wed, 6 Apr 2022 17:45:20 +0100 Message-Id: <20220406164546.1888528-17-james.morse@arm.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220406164546.1888528-1-james.morse@arm.com> References: <0220406164217.1888053-1-james.morse@arm.com> <20220406164546.1888528-1-james.morse@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 a36595c1557b..93bf53aa02d4 100644 --- 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 -- 2.30.2