linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init
@ 2021-12-01 12:50 Peng Fan (OSS)
  2021-12-01 12:50 ` [PATCH 2/2] clocksource: timer-imx-sysctr: set cpumask to cpu_possible_mask Peng Fan (OSS)
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Peng Fan (OSS) @ 2021-12-01 12:50 UTC (permalink / raw)
  To: daniel.lezcano, tglx, shawnguo, s.hauer
  Cc: kernel, festevam, linux-imx, linux-kernel, linux-arm-kernel,
	van.freenix, Peng Fan, Kees Cook

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

sys_ctr_base and cmpcr will not be updated after init, so mark
as __ro_after_init.

Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/clocksource/timer-imx-sysctr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/timer-imx-sysctr.c b/drivers/clocksource/timer-imx-sysctr.c
index 18b90fc56bfc..2b309af11266 100644
--- a/drivers/clocksource/timer-imx-sysctr.c
+++ b/drivers/clocksource/timer-imx-sysctr.c
@@ -20,8 +20,8 @@
 
 #define SYS_CTR_CLK_DIV		0x3
 
-static void __iomem *sys_ctr_base;
-static u32 cmpcr;
+static void __iomem *sys_ctr_base __ro_after_init;
+static u32 cmpcr __ro_after_init;
 
 static void sysctr_timer_enable(bool enable)
 {
-- 
2.25.1


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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-12-14  9:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 12:50 [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init Peng Fan (OSS)
2021-12-01 12:50 ` [PATCH 2/2] clocksource: timer-imx-sysctr: set cpumask to cpu_possible_mask Peng Fan (OSS)
2021-12-02 10:22   ` Daniel Lezcano
2021-12-05 12:53     ` Peng Fan
2021-12-03  0:05 ` [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init Kees Cook
2021-12-09 13:15 ` Daniel Lezcano
2021-12-14  8:25   ` Peng Fan
2021-12-14  9:19     ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).