]> Git Repo - linux.git/commitdiff
irqchip/sifive-plic: Mark two global variables __ro_after_init
authorJisheng Zhang <[email protected]>
Mon, 29 Mar 2021 18:09:11 +0000 (02:09 +0800)
committerMarc Zyngier <[email protected]>
Wed, 7 Apr 2021 12:25:52 +0000 (13:25 +0100)
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]>
Link: https://lore.kernel.org/r/20210330020911.26423e9e@xhacker
drivers/irqchip/irq-sifive-plic.c

index 6f432d2a5cebdc388f5c7d88e1c807f4d83fc28f..97d4d04b0a80eb57346227da018b2f5cdee8ccdc 100644 (file)
@@ -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,
This page took 0.047825 seconds and 4 git commands to generate.