diff options
| author | Aneesh Kumar K.V <[email protected]> | 2020-08-17 10:33:01 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2020-08-17 13:33:00 +0000 |
| commit | 1e4e4bcaf70ec89f8b499c93a83d078c1e5c0ea6 (patch) | |
| tree | f459b066ab131dfe85866523e4eb31dd04acf62e /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | powerpc/kernel: Cleanup machine check function declarations (diff) | |
| download | kernel-1e4e4bcaf70ec89f8b499c93a83d078c1e5c0ea6.tar.gz kernel-1e4e4bcaf70ec89f8b499c93a83d078c1e5c0ea6.zip | |
powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled
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);
| ^~~~~~~~~~~~~
Fixes: 6553fb799f60 ("powerpc/pkeys: Fix boot failures with Nemo board (A-EON AmigaOne X1000)")
Signed-off-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
