[PATCH v5 04/25] arm/mm: Convert pte_next_pfn() to pte_advance_pfn()

Ryan Roberts ryan.roberts at arm.com
Fri Feb 2 19:07:35 AEDT 2024


Core-mm needs to be able to advance the pfn by an arbitrary amount, so
improve the API to do so and change the name.

Signed-off-by: Ryan Roberts <ryan.roberts at arm.com>
---
 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 c24e29c0b9a4..137711c68f2f 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++;
-		pteval = pte_next_pfn(pteval);
+		pteval = pte_advance_pfn(pteval, 1);
 	}
 }
-- 
2.25.1



More information about the Linuxppc-dev mailing list