]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pkeys: Remove unused code
authorSandipan Das <sandipan@linux.ibm.com>
Tue, 2 Feb 2021 15:00:50 +0000 (20:30 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 14:09:44 +0000 (01:09 +1100)
commit84cf6e1e9f8d1a7bc1366751138b60358ae9ccde
tree31783f7fc21d566a5cb8457cb10fd588957dbecc
parent18f31b381a599a131650eee00aca204ec569f4c6
powerpc/pkeys: Remove unused code

This removes arch_supports_pkeys(), arch_usable_pkeys() and
thread_pkey_regs_*() which are remnants from the following:

commit 66ef5807c3c1 ("powerpc: store and restore the pkey state across context switches")
commit a332530a333d ("powerpc/pkeys: Fix handling of pkey state across fork()")
commit b5a994822277 ("powerpc: Enable pkey subsystem")

arch_supports_pkeys() and arch_usable_pkeys() were unused
since their introduction while thread_pkey_regs_*() became
unused after the introduction of the following:

commit 96984c9a9ef1 ("powerpc/book3s64/pkeys: Reset userspace AMR correctly on exec")
commit 47ccdd0872a0 ("powerpc/book3s64/pkeys: Don't update SPRN_AMR when in kernel mode")

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210202150050.75335-1-sandipan@linux.ibm.com
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/include/asm/pkeys.h