asm-generic/io.h: give stub iounmap() on !MMU same prototype as elsewhere
authorAdam Borowski <kilobyte@angband.pl>
Sun, 12 Sep 2021 21:26:06 +0000 (23:26 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 8 Oct 2021 13:39:33 +0000 (15:39 +0200)
It made -Werror sad.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h

index e93375c..dea1d36 100644 (file)
@@ -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