diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-09-20 21:32:49 +0000 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-12-21 21:31:08 +0100 |
commit | 5f174ec3c1d62013f86db6597249174d8cb227b2 (patch) | |
tree | 541bb933e1a7610832c0931507e06bb0c7acca8e /lib/logic_iomem.c | |
parent | 577ade59b99e3473b2f1342b1eb9e496eed39b68 (diff) |
logic_io instance of iounmap() needs volatile on argument
... same as the rest of implementations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'lib/logic_iomem.c')
-rw-r--r-- | lib/logic_iomem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/logic_iomem.c b/lib/logic_iomem.c index 549b22d4bcde..8c3365f26e51 100644 --- a/lib/logic_iomem.c +++ b/lib/logic_iomem.c @@ -76,7 +76,7 @@ static void __iomem *real_ioremap(phys_addr_t offset, size_t size) return NULL; } -static void real_iounmap(void __iomem *addr) +static void real_iounmap(volatile void __iomem *addr) { WARN(1, "invalid iounmap for addr 0x%llx\n", (unsigned long long)(uintptr_t __force)addr); @@ -149,7 +149,7 @@ get_area(const volatile void __iomem *addr) return NULL; } -void iounmap(void __iomem *addr) +void iounmap(volatile void __iomem *addr) { struct logic_iomem_area *area = get_area(addr); |