[PATCH 3/5] mm/parisc: constify ptep_get() argument
Pedro Falcato <[email protected]>
| Newsgroups | gmane.linux.ports.ppc.embedded |
|---|---|
| Message-ID | <20260724102017.141532-4-pfalcato__41289.4770548277$1784888472$gmane$org@suse.de> |
ptep_get() does not need write access to the PTE. Signed-off-by: Pedro Falcato <[email protected]> --- arch/parisc/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h index 467b8547ac8b..83f8333ad099 100644 --- a/arch/parisc/include/asm/pgtable.h +++ b/arch/parisc/include/asm/pgtable.h @@ -432,7 +432,7 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte) return pte; } -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