]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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 e93375c710b932504d629bb68c3c08bc3ec24072..dea1d36a64020aded2fec4ccaca052b32a719bd4 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