Skip to content

Commit 2fbc349

Browse files
kilobytearndb
authored andcommitted
asm-generic/io.h: give stub iounmap() on !MMU same prototype as elsewhere
It made -Werror sad. Signed-off-by: Adam Borowski <kilobyte@angband.pl> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 424953c commit 2fbc349

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • include/asm-generic

include/asm-generic/io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
957957

958958
#ifndef iounmap
959959
#define iounmap iounmap
960-
static inline void iounmap(void __iomem *addr)
960+
static inline void iounmap(volatile void __iomem *addr)
961961
{
962962
}
963963
#endif

0 commit comments

Comments
 (0)