On Mon, 15 Mar 2021 14:52:51 +0000 (UTC), Christophe Leroy wrote: > 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().
Applied to powerpc/next. [1/1] powerpc/mm: Remove unneeded #ifdef CONFIG_PPC_MEM_KEYS https://git.kernel.org/powerpc/c/98c26a72751ecb2ed247cdfd6cb2385f37195707 cheers