Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3556968pxp; Tue, 15 Mar 2022 00:43:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy73Cd0AJT8adOqPSY+NxI1ESQsJuLrCMEbpKW6vTTxPxuuygjYK17IeyYuzjwX47vsZVP1 X-Received: by 2002:a05:6402:1d4d:b0:416:c489:b784 with SMTP id dz13-20020a0564021d4d00b00416c489b784mr20335546edb.304.1647330188364; Tue, 15 Mar 2022 00:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647330188; cv=none; d=google.com; s=arc-20160816; b=Ynw5zabQ6qLN/Hh/gBSy9b/eIh10iMl8fXamBrrJNU0rVEx45eQkLZpebIvLgMqdro T+QgTVg8kQx6mE+KKezD5Jl8X8IYwj+ms+f5LZmzo64FBrmBv5oJngbWH4HP+P7F84Y0 7N9q/DuRKG1UpWi3dKS6oKT453w+ZKdUO7tYZfQ/MbzLmFln9nrqntbogdQz5HLTINLm HbjqZwibKRmoD8MtaJnHt3XaF7Zs56NWmqgXDGUr8pxCpYWuL1WOdDpTQ065rxA6rMkR MCcO1oGvafpdDXIpwc9sB9xmywCJa46SDggo6NpDndRPJuB/3ZrGnRwBYt0wL/XcMHSf NMXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=IJB+YTzoPziF4G82UaT4gwWZMTEZwEBNJf312BitiSc=; b=b5uTs+rFNvwAEhK3AGc/fJBlcn14Z2SRZ7p2kM2HIKilhrt3S0EPs/6tUCixaLwEGL 618UI2cyyRYHjGNiovYZF0NtzBzQtlq90UtnlxWJa+LQEFx59v60XkXiZAkIj0+zVMQI 5akXCN5pPMF6UX5wjaHkNdh4DsiMn9BxaF6O0GReMhtHpaJYh7sY0tgdC4lJywhNBjmp As6HoiNThgSJAOZOr42hUZttt9NRGLNxm89pEiY9wkRB+zicPVSHMjDDghv2b4/r1wrH RM9IMuKwVfzFRZfz6pqXy0Z5NeJOaUtGNE7mMxQMCBLmX9/As/4Zhzk52xw01uV5GmG5 /bjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qJtbrnkv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=VG6OSZcn; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz10-20020a0564021d4a00b004187374626fsi4767620edb.21.2022.03.15.00.42.42; Tue, 15 Mar 2022 00:43:08 -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=@linutronix.de header.s=2020 header.b=qJtbrnkv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=VG6OSZcn; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230422AbiCNJbL (ORCPT + 99 others); Mon, 14 Mar 2022 05:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238041AbiCNJ3w (ORCPT ); Mon, 14 Mar 2022 05:29:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76A4944765; Mon, 14 Mar 2022 02:28:35 -0700 (PDT) Date: Mon, 14 Mar 2022 09:28:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647250114; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IJB+YTzoPziF4G82UaT4gwWZMTEZwEBNJf312BitiSc=; b=qJtbrnkvR9b5YPRPzR9s8pM30tROEFnptB55MlkO5EjzHyH1VJqI2X9+Z7ni4PBqInFWPW YWY7S+yfxumYnZBeZtGe7HiUTzrmJHYA8gAmnXsaYsv5tZQpElgqtMJYe1h2oC7wLDTJIO F5NydmT2sEH4ZkkoTSnoyaeKe9jZ3amF0YqpFbwbaoRGBfWk/HpFZdTutJqpDDS5ZXQ6HL Kr7fqurDMwYFQqtDWQkN1I/eTvzU9D2i28jJOjhHxaXGRWGgyU9WqT4B6Ra0h6K0WOSWE4 O/icW1beHbwWgL3LfcCVt3mnhobyeI2tjmFtjRimiczMAvx+6i7N3u15w/MqYw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647250114; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IJB+YTzoPziF4G82UaT4gwWZMTEZwEBNJf312BitiSc=; b=VG6OSZcnaO3AEIN1qba/z/B7dq2CyCrbU+JiqjM6Q2tjf+qApYfcvHNK1z7ASjObmmksj1 R1j3JyV4qo5hacBQ== From: "tip-bot2 for Peng Fan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/imx-tpm: Mark two variable with __ro_after_init Cc: Peng Fan , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20211214120737.1611955-4-peng.fan@oss.nxp.com> References: <20211214120737.1611955-4-peng.fan@oss.nxp.com> MIME-Version: 1.0 Message-ID: <164725011348.16921.10124176531066781245.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The following commit has been merged into the timers/core branch of tip: Commit-ID: 5b3c267506eba2972d53dafb8b988d5fd28d223d Gitweb: https://git.kernel.org/tip/5b3c267506eba2972d53dafb8b988d5fd28d223d Author: Peng Fan AuthorDate: Tue, 14 Dec 2021 20:07:35 +08:00 Committer: Daniel Lezcano CommitterDate: Wed, 26 Jan 2022 10:00:50 +01:00 clocksource/drivers/imx-tpm: Mark two variable with __ro_after_init counter_width and timer_base will not be updated after init, so mark as __ro_after_init. Signed-off-by: Peng Fan Link: https://lore.kernel.org/r/20211214120737.1611955-4-peng.fan@oss.nxp.com Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-imx-tpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 2c0b0d4..3afd9b0 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -32,8 +32,8 @@ #define TPM_C0SC_CHF_MASK (0x1 << 7) #define TPM_C0V 0x24 -static int counter_width; -static void __iomem *timer_base; +static int counter_width __ro_after_init; +static void __iomem *timer_base __ro_after_init; static inline void tpm_timer_disable(void) {