powerpc/book3e: Fix sparse report in mm/nohash/fsl_book3e.c
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sun, 13 Mar 2022 19:41:41 +0000 (20:41 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 May 2022 09:37:46 +0000 (19:37 +1000)
commit87ccc6684d3b57e3073f77cf28396b3037154193
tree34b6fb816bd041c100d5f48e6227b71eb954f070
parent5e6ec1ad2e89c9b9d4047778748e42f4450fb381
powerpc/book3e: Fix sparse report in mm/nohash/fsl_book3e.c

Make tlbcam_addrs[] static.

Declare TLBCAM[] in mm/mmu_decl.h

And use NULL instead of 0 as pointer when calling restore_to_as0().

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/fd0cc30b5556428ce1d8a1fc0f983b462e88a956.1647200488.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/mmu_decl.h
arch/powerpc/mm/nohash/fsl_book3e.c