bianbu-linux-6.6/arch/powerpc/mm/book3s64
Aneesh Kumar K.V 1e4e4bcaf7 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: 6553fb799f ("powerpc/pkeys: Fix boot failures with Nemo board (A-EON AmigaOne X1000)")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200817103301.158836-1-aneesh.kumar@linux.ibm.com
2020-08-17 23:33:00 +10:00
..
hash_4k.c powerpc/mm: Move book3s64 specifics in subdirectory mm/book3s64 2019-05-03 01:18:38 +10:00
hash_64k.c powerpc/mm: Move book3s64 specifics in subdirectory mm/book3s64 2019-05-03 01:18:38 +10:00
hash_hugepage.c powerpc/mm: Move book3s64 specifics in subdirectory mm/book3s64 2019-05-03 01:18:38 +10:00
hash_hugetlbpage.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
hash_native.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
hash_pgtable.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
hash_tlb.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
hash_utils.c powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled 2020-08-17 23:33:00 +10:00
internal.h powerpc/64s/hash: Add stress_slb kernel boot option to increase SLB faults 2020-05-20 23:39:58 +10:00
iommu_api.c mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
Makefile powerpc/pseries: Move mm/book3s64/vphn.c under platforms/pseries/ 2019-07-04 22:23:38 +10:00
mmu_context.c powerpc/book3s64/radix: Remove WARN_ON in destroy_context() 2019-09-21 08:36:53 +10:00
pgtable.c powerpc/book3s64/keys/kuap: Reset AMR/IAMR values on kexec 2020-07-20 22:57:59 +10:00
pkeys.c powerpc/pkeys: Fix boot failures with Nemo board (A-EON AmigaOne X1000) 2020-08-10 23:07:21 +10:00
radix_hugetlbpage.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
radix_pgtable.c powerpc: fix function annotations to avoid section mismatch warnings with gcc-10 2020-07-30 10:50:07 +10:00
radix_tlb.c powerpc/mm/book3s64/radix: Off-load TLB invalidations to host when !GTSE 2020-07-16 13:00:21 +10:00
slb.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
subpage_prot.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00