powerpc/mm: Move tlbcam_sz() and make it static
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 24 Nov 2021 09:32:52 +0000 (20:32 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Nov 2021 11:49:20 +0000 (22:49 +1100)
commitff47a95d1a67477e9bc2049a840d93b68508e079
tree83afc6fd77d999ed32764e67ed2e19bb27500651
parentd9150d5bb5586dc20b6c424e59d5ea29fe1b3030
powerpc/mm: Move tlbcam_sz() and make it static

Building with W=1 we see a warning:
  linux/arch/powerpc/mm/nohash/fsl_book3e.c:63:15: error: no previous prototype for ‘tlbcam_sz’

tlbcam_sz() is not used outside this file, so we can make it static.
However it's only used inside #ifdef CONFIG_PPC32, so move it within
that ifdef, otherwise we would get a defined but not used error.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211124093254.1054750-4-mpe@ellerman.id.au
arch/powerpc/mm/nohash/fsl_book3e.c