summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup-common.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2021-11-24 20:32:54 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2021-11-29 22:49:26 +1100
commitab85a273957eadfcf7906bcd8a0adf5909d802ee (patch)
tree7caec288bd0f28f7b6a7b25117d66d7e029c415c /arch/powerpc/kernel/setup-common.c
parenta4ac0d249a5db80e79d573db9e4ad29354b643a8 (diff)
downloadlinux-stable-ab85a273957eadfcf7906bcd8a0adf5909d802ee.tar.gz
linux-stable-ab85a273957eadfcf7906bcd8a0adf5909d802ee.tar.bz2
linux-stable-ab85a273957eadfcf7906bcd8a0adf5909d802ee.zip
powerpc: Mark probe_machine() __init and static
Prior to commit b1923caa6e64 ("powerpc: Merge 32-bit and 64-bit setup_arch()") probe_machine() was called from setup_32/64.c and lived in setup-common.c. But now it's only called from setup-common.c so it can be static and __init, and we don't need the declaration in machdep.h either. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211124093254.1054750-6-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/kernel/setup-common.c')
-rw-r--r--arch/powerpc/kernel/setup-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 4f1322b65760..f8da937df918 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -582,7 +582,7 @@ static __init int add_pcspkr(void)
device_initcall(add_pcspkr);
#endif /* CONFIG_PCSPKR_PLATFORM */
-void probe_machine(void)
+static __init void probe_machine(void)
{
extern struct machdep_calls __machine_desc_start;
extern struct machdep_calls __machine_desc_end;