diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2022-06-07 20:50:24 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-06-27 12:22:31 +0100 |
commit | a14fff1c0379d0422c5ca0084b0ab86ed7bedf3e (patch) | |
tree | 549d833cf70b8ff880f7b3ce28fcbca9bfc10774 /mm/ioremap.c | |
parent | abc5992b9dd0ba599f7a91d5a0f4569a78ae88ac (diff) | |
download | linux-stable-a14fff1c0379d0422c5ca0084b0ab86ed7bedf3e.tar.gz linux-stable-a14fff1c0379d0422c5ca0084b0ab86ed7bedf3e.tar.bz2 linux-stable-a14fff1c0379d0422c5ca0084b0ab86ed7bedf3e.zip |
mm: ioremap: Setup phys_addr of struct vm_struct
Show physical address of each ioremap in /proc/vmallocinfo.
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Link: https://lore.kernel.org/r/20220607125027.44946-4-wangkefeng.wang@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'mm/ioremap.c')
-rw-r--r-- | mm/ioremap.c | 1 |
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))) { |