powerpc/sysdev: Add __init attribute to eligible functions

Some files functions in 'arch/powerpc/sysdev' are deserving of an `__init`
macro attribute. These functions are only called by other initialization
functions and therefore should inherit the attribute.
Also, change function declarations in header files to include `__init`.

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-6-nick.child@ibm.com
This commit is contained in:
Nick Child
2021-12-16 17:00:20 -05:00
committed by Michael Ellerman
parent c49f5d88ff
commit 6c552983d0
24 changed files with 40 additions and 40 deletions

View File

@@ -492,7 +492,7 @@ static const struct xive_ops xive_native_ops = {
.name = "native",
};
static bool xive_parse_provisioning(struct device_node *np)
static bool __init xive_parse_provisioning(struct device_node *np)
{
int rc;
@@ -532,7 +532,7 @@ static bool xive_parse_provisioning(struct device_node *np)
return true;
}
static void xive_native_setup_pools(void)
static void __init xive_native_setup_pools(void)
{
/* Allocate a pool big enough */
pr_debug("XIVE: Allocating VP block for pool size %u\n", nr_cpu_ids);