Files
linux/arch/powerpc/include/asm
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
..
2024-04-08 15:03:06 +02:00
2023-10-20 23:18:07 +11:00
2023-10-20 23:18:07 +11:00
2024-07-12 15:52:19 -07:00
2023-12-08 12:02:37 +01:00
2023-12-08 12:02:37 +01:00
2021-03-24 14:09:29 +11:00
2022-06-29 19:37:07 +10:00
2024-05-08 00:21:30 +10:00
2024-06-28 22:28:48 +10:00
2024-06-28 22:28:48 +10:00
2024-02-15 00:14:06 +11:00
2024-05-08 00:21:30 +10:00
2023-12-08 12:02:37 +01:00
2024-07-12 15:52:19 -07:00
2021-02-09 01:09:44 +11:00
2024-05-08 00:21:30 +10:00
2022-05-08 22:15:40 +10:00
2022-12-07 20:14:49 +11:00
2024-06-28 22:28:48 +10:00
2023-08-24 22:33:16 +10:00
2021-12-09 22:41:21 +11:00
2022-09-28 19:22:09 +10:00
2024-06-28 22:28:47 +10:00
2024-06-28 22:28:47 +10:00
2024-05-08 00:21:30 +10:00
2022-07-27 21:36:05 +10:00
2022-01-30 21:17:00 -05:00