Re: [PATCH 2/2] powerpc/mm/books64/pkeys: Rename is_pkey_enabled()

2020-06-30 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > Rename is_pkey_enabled() to is_pkey_masked() to better indicates that > this check is to make sure the key is available for userspace usage. I don't think the new name makes that any clearer. Unless you know that "masked" means not "available for userspace". It's

[PATCH 2/2] powerpc/mm/books64/pkeys: Rename is_pkey_enabled()

2020-06-27 Thread Aneesh Kumar K.V
Rename is_pkey_enabled() to is_pkey_masked() to better indicates that this check is to make sure the key is available for userspace usage. For it to be made available both the bits in UAMOR should be set to 1 (0b11). Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/book3s64/pkeys.c | 10