irqchip/sifive-plic: Mark two global variables __ro_after_init
Subsystems (3)
PATCH 1/1 irqchip/sifive-plic: Mark two global variables __ro_after_init
From: Jisheng Zhang <[email protected]>
All of these two are never modified after init, so they can be
__ro_after_init.
Signed-off-by Jisheng Zhang <[email protected]>
--- drivers/irqchip/irq-sifive-plic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-sifive-plic.c +2 -2
@@ -77,8 +77,8 @@ struct plic_handler {void __iomem *enable_base;struct plic_priv *priv; }; -static int plic_parent_irq; -static bool plic_cpuhp_setup_done; +static int plic_parent_irq__ro_after_init ; +static bool plic_cpuhp_setup_done__ro_after_init ; static DEFINE_PER_CPU(struct plic_handler, plic_handlers); static inline void plic_toggle(struct plic_handler *handler,
Signature · 1 line
2.31.0
Marc Zyngier
AppliedQuoted 2 lines · Jisheng Zhang
All of these two are never modified after init, so they can be
__ro_after_init.
Applied to irq/irqchip-next, thanks!
[1/1] irqchip/sifive-plic: Mark two global variables __ro_after_init
commit: e03b7c1bcbfad6f27b4682f638b98627c4e416ba
Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
The following commit has been merged into the irq/irqchip-next branch of irqchip:
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: e03b7c1bcbfad6f27b4682f638b98627c4e416ba Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/e03b7c1bcbfad6f27b4682f638b98627c4e416ba Author: Jisheng Zhang <[email protected]> AuthorDate: Tue, 30 Mar 2021 02:09:11 +08:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Wed, 07 Apr 2021 13:25:52 +01:00
irqchip/sifive-plic: Mark two global variables __ro_after_init
All of these two are never modified after init, so they can be
__ro_after_init.
Signed-off-by Jisheng Zhang <[email protected]>
Signed-off-by Marc Zyngier <[email protected]>
--- drivers/irqchip/irq-sifive-plic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/irqchip/irq-sifive-plic.c +2 -2
@@ -77,8 +77,8 @@ struct plic_handler {void __iomem *enable_base;struct plic_priv *priv; }; -static int plic_parent_irq; -static bool plic_cpuhp_setup_done; +static int plic_parent_irq__ro_after_init ; +static bool plic_cpuhp_setup_done__ro_after_init ; static DEFINE_PER_CPU(struct plic_handler, plic_handlers); static inline void plic_toggle(struct plic_handler *handler,