From: Jisheng Zhang Date: Mon, 29 Mar 2021 18:09:11 +0000 (+0800) Subject: irqchip/sifive-plic: Mark two global variables __ro_after_init X-Git-Tag: accepted/tizen/unified/20230118.172025~7428^2^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e03b7c1bcbfad6f27b4682f638b98627c4e416ba;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20210330020911.26423e9e@xhacker --- diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index 6f432d2..97d4d04 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -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,