Thread (48 messages) 48 messages, 4 authors, 2024-03-25

[PATCH v3 09/15] arm/mm: use pte_next_pfn() in set_ptes()

From: David Hildenbrand <hidden>
Date: 2024-01-29 12:47:59
Also in: linux-mm, linux-riscv, linux-s390, linuxppc-dev, lkml, sparclinux
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Let's use our handy helper now that it's available on all archs.

Signed-off-by: David Hildenbrand <redacted>
---
 arch/arm/mm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 674ed71573a8..c24e29c0b9a4 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -1814,6 +1814,6 @@ void set_ptes(struct mm_struct *mm, unsigned long addr,
 		if (--nr == 0)
 			break;
 		ptep++;
-		pte_val(pteval) += PAGE_SIZE;
+		pteval = pte_next_pfn(pteval);
 	}
 }
-- 
2.43.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help