[PATCH v2] powerpc/mm: Fix return type of pgd_val()

Michael Ellerman patch-notifications at ellerman.id.au
Tue Aug 27 17:14:53 AEST 2024


On Thu, 22 Aug 2024 09:58:42 +0200, Christophe Leroy wrote:
> Commit 6b0e82791bd0 ("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.
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/mm: Fix return type of pgd_val()
      https://git.kernel.org/powerpc/c/3b1f7a46977fe2ff9384d08651a6e0d272ae6a60

cheers


More information about the Linuxppc-dev mailing list