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 <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 424953c commit 2fbc349

File tree

1 file changed

+1
-1
lines changed
  • include/asm-generic

1 file changed

+1
-1
lines changed

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)