powerpc/47x: Remove early_init_mmu_47x() to fix no previous prototype
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 17 Aug 2023 14:26:44 +0000 (16:26 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Aug 2023 07:03:14 +0000 (17:03 +1000)
commited05c71a574235aec3418d2b5c94f24ae84cc2db
tree41280199a4ebd4bc1e6e6038444ebb9312324302
parent81554d10b22a211e4598a067a0f84b6e9e492669
powerpc/47x: Remove early_init_mmu_47x() to fix no previous prototype

4xx/iss476-smp_defconfig leads to:

  CC      arch/powerpc/mm/nohash/tlb.o
arch/powerpc/mm/nohash/tlb.c:322:13: error: no previous prototype for 'early_init_mmu_47x' [-Werror=missing-prototypes]
  322 | void __init early_init_mmu_47x(void)
      |             ^~~~~~~~~~~~~~~~~~

early_init_mmu_47x() is used only at one place and only locally.

Fold it into its only caller and remove it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/0a667b7c2e05d3cf41ecd38f33cc334083a61c8d.1692282396.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/nohash/tlb.c