[PATCH v2 4/6] mm/s390: constify ptep_get() argument

From: Pedro Falcato

Date: Mon Aug 03 2026 - 13:04:07 EST


It's a simple READ_ONCE() dereference, therefore it can be const.

Signed-off-by: Pedro Falcato <pfalcato@xxxxxxx>
---
arch/s390/include/asm/pgtable.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index e882663a58e7..ec331ec92943 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -986,7 +986,7 @@ static inline void set_pte(pte_t *ptep, pte_t pte)
}

#define ptep_get ptep_get
-static inline pte_t ptep_get(pte_t *ptep)
+static inline pte_t ptep_get(const pte_t *ptep)
{
return READ_ONCE(*ptep);
}
--
2.55.0