diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-03-15 17:52:51 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-03-29 05:22:15 +0300 |
commit | 98c26a72751ecb2ed247cdfd6cb2385f37195707 (patch) | |
tree | a70dfcd35e09bcf329e8d57f52b207a16b22ce67 /arch/powerpc/mm/book3s64 | |
parent | b77878052a142737522e0e3c2a621c988a4cd7cd (diff) | |
download | linux-98c26a72751ecb2ed247cdfd6cb2385f37195707.tar.xz |
powerpc/mm: Remove unneeded #ifdef CONFIG_PPC_MEM_KEYS
In fault.c, #ifdef CONFIG_PPC_MEM_KEYS is not needed because all
functions are always defined, and arch_vma_access_permitted()
always returns true when CONFIG_PPC_MEM_KEYS is not defined so
access_pkey_error() will return false so bad_access_pkey()
will never be called.
Include linux/pkeys.h to get a definition of vma_pkeys() for
bad_access_pkey().
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8038392f38d81f2ad169347efac29146f553b238.1615819955.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/mm/book3s64')
0 files changed, 0 insertions, 0 deletions