diff options
| author | Nick Child <[email protected]> | 2021-12-16 22:00:20 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-12-23 11:33:12 +0000 |
| commit | 6c552983d0e65a8c923dfacc4f69b694205672c1 (patch) | |
| tree | d2bf1506f3f9be6939d35156174e8cb4c3f389db /arch/powerpc/sysdev/xive/native.c | |
| parent | powerpc/perf: Add __init attribute to eligible functions (diff) | |
| download | kernel-6c552983d0e65a8c923dfacc4f69b694205672c1.tar.gz kernel-6c552983d0e65a8c923dfacc4f69b694205672c1.zip | |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/sysdev/xive/native.c')
| -rw-r--r-- | arch/powerpc/sysdev/xive/native.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c index d4243dab230e..f940428ad13f 100644 --- a/arch/powerpc/sysdev/xive/native.c +++ b/arch/powerpc/sysdev/xive/native.c @@ -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); |
