]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s64/pkeys: Convert pkey_total to num_pkey
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 9 Jul 2020 03:29:33 +0000 (08:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:58 +0000 (22:57 +1000)
commit96324041d8c53f85e2ced82dc1ae516bcc238959
tree08c2be27ab217d293233ba4236de26199d500893
parenta4b7a9b243268d12a2d0126ef69dfc7eeb4b6a72
powerpc/book3s64/pkeys: Convert pkey_total to num_pkey

num_pkey now represents max number of keys supported such that we return
to userspace 0 - num_pkey - 1.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709032946.881753-11-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/pkeys.h
arch/powerpc/mm/book3s64/pkeys.c