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)
commitc529afd7cbc71ae1dc44a31efc7c1c9db3c3a143
tree08c2be27ab217d293233ba4236de26199d500893
parenta4678d4b477c3d2901f101986ca01406f3b7eaea
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