powerpc: implementation for arch_override_mprotect_pkey()
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:34 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:59:02 +0000 (22:59 +1100)
commit87bbabbed8a77092135f6442b8d5619906a81255
treeb4038c51b01c27a1bc0f1e194045a273800df157
parent013a91b39c2d5158cdc5529803f245bbb0526c7c
powerpc: implementation for arch_override_mprotect_pkey()

arch independent code calls arch_override_mprotect_pkey()
to return a pkey that best matches the requested protection.

This patch provides the implementation.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/include/asm/pkeys.h
arch/powerpc/mm/pkeys.c