]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8d64655d9860fecd0536645a555afe2d7570b6d
tree34b6fb816bd041c100d5f48e6227b71eb954f070
parente3f2d49ba22080a32c95a28788bb840aa1582649
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