From: "David Hildenbrand (Arm)" As pgd_t is returned from a function, like pgdp_get(). pgd_t shouldn't be an array. There is no need to match the actual arm page tables, because with nommu there are no page tables. It's all just in place to make the compiler happy. Making it a scalar will make the compiler happy. So let's just use an u32. Signed-off-by: David Hildenbrand (Arm) --- arch/arm/include/asm/page-nommu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/page-nommu.h b/arch/arm/include/asm/page-nommu.h index e74415c959bea..88659b38e2364 100644 --- a/arch/arm/include/asm/page-nommu.h +++ b/arch/arm/include/asm/page-nommu.h @@ -18,12 +18,12 @@ */ typedef unsigned long pte_t; typedef unsigned long pmd_t; -typedef unsigned long pgd_t[2]; +typedef unsigned long pgd_t; typedef unsigned long pgprot_t; #define pte_val(x) (x) #define pmd_val(x) (x) -#define pgd_val(x) ((x)[0]) +#define pgd_val(x) (x) #define pgprot_val(x) (x) #define __pte(x) (x) -- 2.43.0