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, van.freenix@gmail.com, Peng Fan <peng.fan@nxp.com>, Kees Cook <keescook@chromium.org> Subject: [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init Date: Wed, 1 Dec 2021 20:50:29 +0800 [thread overview] Message-ID: <20211201125030.2307746-1-peng.fan@oss.nxp.com> (raw) 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
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, van.freenix@gmail.com, Peng Fan <peng.fan@nxp.com>, Kees Cook <keescook@chromium.org> Subject: [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init Date: Wed, 1 Dec 2021 20:50:29 +0800 [thread overview] Message-ID: <20211201125030.2307746-1-peng.fan@oss.nxp.com> (raw) 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
next reply other threads:[~2021-12-01 12:51 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-01 12:50 Peng Fan (OSS) [this message] 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-01 12:50 ` Peng Fan (OSS) 2021-12-02 10:22 ` Daniel Lezcano 2021-12-02 10:22 ` Daniel Lezcano 2021-12-05 12:53 ` Peng Fan 2021-12-05 12:53 ` Peng Fan 2022-01-10 12:59 ` [tip: timers/core] clocksource/drivers/timer-imx-sysctr: Set " tip-bot2 for 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-03 0:05 ` Kees Cook 2021-12-09 13:15 ` Daniel Lezcano 2021-12-09 13:15 ` Daniel Lezcano 2021-12-14 8:25 ` Peng Fan 2021-12-14 8:25 ` Peng Fan 2021-12-14 9:19 ` Daniel Lezcano 2021-12-14 9:19 ` Daniel Lezcano 2022-01-10 12:59 ` [tip: timers/core] clocksource/drivers/imx-sysctr: Mark " tip-bot2 for Peng Fan
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=20211201125030.2307746-1-peng.fan@oss.nxp.com \ --to=peng.fan@oss.nxp.com \ --cc=daniel.lezcano@linaro.org \ --cc=festevam@gmail.com \ --cc=keescook@chromium.org \ --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 \ --cc=van.freenix@gmail.com \ /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: linkBe 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.