powerpc/44x: Add __init attribute to eligible functions
authorNick Child <nick.child@ibm.com>
Thu, 16 Dec 2021 22:00:30 +0000 (17:00 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:33:17 +0000 (22:33 +1100)
Some functions defined in 'arch/powerpc/platforms/44x/' are deserving of an
`__init` macro attribute. These functions are only called by other
initialization functions and therefore should inherit the attribute.

Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-16-nick.child@ibm.com
arch/powerpc/platforms/44x/fsp2.c

index 823397c802defe52e7d2fed90c8d587d19cb3d8f..af13a59d2f60f96eefc864ba0bb352dfae4870bb 100644 (file)
@@ -197,7 +197,7 @@ static irqreturn_t rst_wrn_handler(int irq, void *data) {
        }
 }
 
-static void node_irq_request(const char *compat, irq_handler_t errirq_handler)
+static void __init node_irq_request(const char *compat, irq_handler_t errirq_handler)
 {
        struct device_node *np;
        unsigned int irq;
@@ -222,7 +222,7 @@ static void node_irq_request(const char *compat, irq_handler_t errirq_handler)
        }
 }
 
-static void critical_irq_setup(void)
+static void __init critical_irq_setup(void)
 {
        node_irq_request(FSP2_CMU_ERR, cmu_err_handler);
        node_irq_request(FSP2_BUS_ERR, bus_err_handler);