[PATCH] powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled
Michael Ellerman
patch-notifications at ellerman.id.au
Tue Aug 18 23:58:17 AEST 2020
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 function âhash__early_init_mmu_secondaryâ:
> arch/powerpc/mm/book3s64/hash_utils.c:1119:21: error: âdefault_uamorâ undeclared (first use in this function)
> 1119 | mtspr(SPRN_UAMOR, default_uamor);
> | ^~~~~~~~~~~~~
Applied to powerpc/fixes.
[1/1] powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled
https://git.kernel.org/powerpc/c/1e4e4bcaf70ec89f8b499c93a83d078c1e5c0ea6
cheers
More information about the Linuxppc-dev
mailing list