All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: daniel.lezcano@linaro.org, tglx@linutronix.de,
	shawnguo@kernel.org, s.hauer@pengutronix.de
Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com>
Subject: [PATCH 3/5] clocksource/drivers/imx-tpm: mark two variable with __ro_after_init
Date: Tue, 14 Dec 2021 20:07:35 +0800	[thread overview]
Message-ID: <20211214120737.1611955-4-peng.fan@oss.nxp.com> (raw)
In-Reply-To: <20211214120737.1611955-1-peng.fan@oss.nxp.com>

From: Peng Fan <peng.fan@nxp.com>

counter_width and timer_base will not be updated after init, so mark
as __ro_after_init.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 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 2c0b0d4eba9e..3afd9b0a668a 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)
 {
-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
To: daniel.lezcano@linaro.org, tglx@linutronix.de,
	shawnguo@kernel.org, s.hauer@pengutronix.de
Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com>
Subject: [PATCH 3/5] clocksource/drivers/imx-tpm: mark two variable with __ro_after_init
Date: Tue, 14 Dec 2021 20:07:35 +0800	[thread overview]
Message-ID: <20211214120737.1611955-4-peng.fan@oss.nxp.com> (raw)
In-Reply-To: <20211214120737.1611955-1-peng.fan@oss.nxp.com>

From: Peng Fan <peng.fan@nxp.com>

counter_width and timer_base will not be updated after init, so mark
as __ro_after_init.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 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 2c0b0d4eba9e..3afd9b0a668a 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)
 {
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2021-12-14 12:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14 12:07 [PATCH 0/5] clocksource/drivers/imx: several updates Peng Fan (OSS)
2021-12-14 12:07 ` Peng Fan (OSS)
2021-12-14 12:07 ` [PATCH 1/5] clocksource/drivers/imx-sysctr: drop IRQF_IRQPOLL Peng Fan (OSS)
2021-12-14 12:07   ` Peng Fan (OSS)
2022-03-14  9:28   ` [tip: timers/core] clocksource/drivers/imx-sysctr: Drop IRQF_IRQPOLL tip-bot2 for Peng Fan
2021-12-14 12:07 ` [PATCH 2/5] clocksource/drivers/imx-tpm: drop IRQF_IRQPOLL Peng Fan (OSS)
2021-12-14 12:07   ` Peng Fan (OSS)
2022-03-14  9:28   ` [tip: timers/core] clocksource/drivers/imx-tpm: Drop IRQF_IRQPOLL tip-bot2 for Peng Fan
2021-12-14 12:07 ` Peng Fan (OSS) [this message]
2021-12-14 12:07   ` [PATCH 3/5] clocksource/drivers/imx-tpm: mark two variable with __ro_after_init Peng Fan (OSS)
2022-03-14  9:28   ` [tip: timers/core] clocksource/drivers/imx-tpm: Mark " tip-bot2 for Peng Fan
2021-12-14 12:07 ` [PATCH 4/5] clocksource/drivers/imx-tpm: add CLOCK_EVT_FEAT_DYNIRQ Peng Fan (OSS)
2021-12-14 12:07   ` Peng Fan (OSS)
2022-03-14  9:28   ` [tip: timers/core] clocksource/drivers/imx-tpm: Add CLOCK_EVT_FEAT_DYNIRQ tip-bot2 for Peng Fan
2021-12-14 12:07 ` [PATCH 5/5] clocksource/drivers/imx-tpm: update name of clkevt Peng Fan (OSS)
2021-12-14 12:07   ` Peng Fan (OSS)
2022-03-14  9:28   ` [tip: timers/core] clocksource/drivers/imx-tpm: Update " tip-bot2 for Peng Fan
2022-01-11  3:39 ` [PATCH 0/5] clocksource/drivers/imx: several updates Peng Fan
2022-01-11  3:39   ` Peng Fan
2022-01-26  8:24   ` Peng Fan
2022-01-26  8:24     ` Peng Fan
2022-01-26  8:59     ` Daniel Lezcano
2022-01-26  8:59       ` Daniel Lezcano
2022-02-13 23:46       ` Peng Fan
2022-02-13 23:46         ` Peng Fan
2022-02-14 11:02         ` Daniel Lezcano
2022-02-14 11:02           ` Daniel Lezcano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211214120737.1611955-4-peng.fan@oss.nxp.com \
    --to=peng.fan@oss.nxp.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.