aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKefeng Wang <[email protected]>2022-06-07 20:50:24 +0800
committerWill Deacon <[email protected]>2022-06-27 12:22:31 +0100
commita14fff1c0379d0422c5ca0084b0ab86ed7bedf3e (patch)
tree549d833cf70b8ff880f7b3ce28fcbca9bfc10774
parentabc5992b9dd0ba599f7a91d5a0f4569a78ae88ac (diff)
mm: ioremap: Setup phys_addr of struct vm_struct
Show physical address of each ioremap in /proc/vmallocinfo. Acked-by: Andrew Morton <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
-rw-r--r--mm/ioremap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/ioremap.c b/mm/ioremap.c
index 2d754b48d230..e1d008e8f87f 100644
--- a/mm/ioremap.c
+++ b/mm/ioremap.c
@@ -33,6 +33,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,
if (!area)
return NULL;
vaddr = (unsigned long)area->addr;
+ area->phys_addr = phys_addr;
if (ioremap_page_range(vaddr, vaddr + size, phys_addr,
__pgprot(prot))) {