Re: [RFC PATCH v2 10/20] powerpc/mm: Fix __find_linux_pte() on 32 bits with PMD leaf entries

2024-05-24 Thread Christophe Leroy
Le 25/05/2024 à 06:12, Oscar Salvador a écrit : > On Fri, May 17, 2024 at 09:00:04PM +0200, Christophe Leroy wrote: >> Building on 32 bits with pmd_leaf() not returning always false leads >> to the following error: > > I am curious though. > pmd_leaf is only defined in include/linux/pgtable.h fo

Re: [RFC PATCH v2 10/20] powerpc/mm: Fix __find_linux_pte() on 32 bits with PMD leaf entries

2024-05-24 Thread Oscar Salvador
On Fri, May 17, 2024 at 09:00:04PM +0200, Christophe Leroy wrote: > Building on 32 bits with pmd_leaf() not returning always false leads > to the following error: I am curious though. pmd_leaf is only defined in include/linux/pgtable.h for 32bits, and is hardcoded to false. I do not see where we c

[RFC PATCH v2 10/20] powerpc/mm: Fix __find_linux_pte() on 32 bits with PMD leaf entries

2024-05-17 Thread Christophe Leroy
Building on 32 bits with pmd_leaf() not returning always false leads to the following error: CC arch/powerpc/mm/pgtable.o arch/powerpc/mm/pgtable.c: In function '__find_linux_pte': arch/powerpc/mm/pgtable.c:506:1: error: function may return address of local variable [-Werror=return-local-a