[PATCH] mm: fix misleading comment for remap_pfn_range()
From: Minu Jin
Date: Tue May 12 2026 - 10:52:36 EST
The function summary describes this as remapping "kernel memory",
but remap_pfn_range() operates on arbitrary PFNs, including
device MMIO regions that are not kernel memory at all.
Replace with "physical address range".
It describes accurately what the function maps.
Signed-off-by: Minu Jin <s9430939@xxxxxxxxx>
---
mm/memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory.c b/mm/memory.c
index ea6568571131..4e07e03a76a4 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3172,7 +3172,7 @@ static int remap_pfn_range_prepare_vma(struct vm_area_struct *vma,
}
/**
- * remap_pfn_range - remap kernel memory to userspace
+ * remap_pfn_range - remap physical address range to user space
* @vma: user vma to map to
* @addr: target page aligned user address to start at
* @pfn: page frame number of kernel physical memory address
--
2.43.0