linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] asm-generic/io.h: give stub iounmap() on !MMU same prototype as elsewhere
@ 2021-09-12 21:26 Adam Borowski
  2021-09-14 14:17 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Borowski @ 2021-09-12 21:26 UTC (permalink / raw)
  To: Arnd Bergmann, linux-arch; +Cc: Adam Borowski

It made -Werror sad.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
 include/asm-generic/io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h
index e93375c710b9..dea1d36a6402 100644
--- a/include/asm-generic/io.h
+++ b/include/asm-generic/io.h
@@ -957,7 +957,7 @@ static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
 
 #ifndef iounmap
 #define iounmap iounmap
-static inline void iounmap(void __iomem *addr)
+static inline void iounmap(volatile void __iomem *addr)
 {
 }
 #endif
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-14 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12 21:26 [PATCH] asm-generic/io.h: give stub iounmap() on !MMU same prototype as elsewhere Adam Borowski
2021-09-14 14:17 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).