]> 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)
commit74af91ba4acd6502e1fdcfb591d049a75ad1429b
tree34b6fb816bd041c100d5f48e6227b71eb954f070
parent7a451c17aa10bf092e992e9c8f51df475a2e2b75
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