1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/powerpc/include/asm/nohash
Christophe Leroy 3b1f7a4697 powerpc/mm: Fix return type of pgd_val()
Commit 6b0e82791b ("powerpc/e500: switch to 64 bits PGD on 85xx
(32 bits)") switched PGD entries to 64 bits, but pgd_val() returns
an unsigned long which is 32 bits on PPC32. This is not a problem
for regular PMD entries because the upper part is always NULL, but
when PMD entries are leaf they contain 64 bits values, so pgd_val()
must return an unsigned long long instead of an unsigned long.

Also change the condition to CONFIG_PPC_85xx instead of CONFIG_PPC_E500
as the change was meant for 32 bits only. Allthough this should be
harmless on PPC64, it generates a warning with pgd_ERROR print.

Fixes: 6b0e82791b ("powerpc/e500: switch to 64 bits PGD on 85xx (32 bits)")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/45f8fdf298ec3df7573b66d21b03a5cda92e2cb1.1724313510.git.christophe.leroy@csgroup.eu
2024-08-22 22:52:38 +10:00
..
32 powerpc/mm: Fix return type of pgd_val() 2024-08-22 22:52:38 +10:00
64 powerpc/nohash: Add _PAGE_WRITE to supplement _PAGE_RW 2023-10-19 17:12:46 +11:00
hugetlb-e500.h powerpc/64s: use contiguous PMD/PUD instead of HUGEPD 2024-07-12 15:52:19 -07:00
kup-booke.h powerpc/kuap: Use ASM feature fixups instead of static branches 2023-08-02 22:22:18 +10:00
mmu-e500.h powerpc/e500: remove enc and ind fields from struct mmu_psize_def 2024-07-12 15:52:17 -07:00
mmu.h powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
pgalloc.h powerpc/e500: use contiguous PMD instead of hugepd 2024-07-12 15:52:18 -07:00
pgtable.h powerpc/e500: use contiguous PMD instead of hugepd 2024-07-12 15:52:18 -07:00
pte-e500.h powerpc/e500: use contiguous PMD instead of hugepd 2024-07-12 15:52:18 -07:00
tlbflush.h powerpc/tlb: Add local flush for page given mm_struct and psize 2022-11-30 21:46:49 +11:00