[PATCH] fixup: arm64/mm: move __check_safe_pte_update()

From: David Hildenbrand (Arm)

Date: Mon Sep 28 2026 - 03:42:06 EST


Signed-off-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
---
arch/arm64/mm/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index e589fb00d1e3..7343ac9294f8 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -2392,6 +2392,7 @@ int arch_set_user_pkey_access(int pkey, unsigned long init_val)

return 0;
}
+#endif

/*
* PTE bits configuration in the presence of hardware Dirty Bit Management
@@ -2440,4 +2441,3 @@ void __check_safe_pte_update(struct mm_struct *mm, pte_t *ptep, pte_t pte)
__func__, pte_str_old, pte_str);
}
#endif /* CONFIG_DEBUG_VM */
-#endif