Re: [PATCH] powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled

2020-08-18 Thread Michael Ellerman
On Mon, 17 Aug 2020 16:03:01 +0530, Aneesh Kumar K.V wrote: > IS_ENABLED() instead of #ifdef still requires variable declaration. > In this specific case, default_uamor is declared in asm/pkeys.h which > is only included if PPC_MEM_KEYS is enabled. > > arch/powerpc/mm/book3s64/hash_utils.c: In fun

[PATCH] powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled

2020-08-17 Thread Aneesh Kumar K.V
IS_ENABLED() instead of #ifdef still requires variable declaration. In this specific case, default_uamor is declared in asm/pkeys.h which is only included if PPC_MEM_KEYS is enabled. arch/powerpc/mm/book3s64/hash_utils.c: In function ‘hash__early_init_mmu_secondary’: arch/powerpc/mm/book3s64/hash