]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Mark probe_machine() __init and static
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 09:32:54 +0000 (20:32 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Nov 2021 11:49:26 +0000 (22:49 +1100)
commitb8573a69c375e3d6dab20507f6f61cf319d09a81
tree7caec288bd0f28f7b6a7b25117d66d7e029c415c
parent395030b4d2ea2093e5ec61ff72f0f8d73e828800
powerpc: Mark probe_machine() __init and static

Prior to commit 8b13b007810a ("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
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/setup-common.c