Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: fix iounmap prototype

The missing 'volatile' keyword on the iounmap argument leads to lots of
harmless warnings in an allmodconfig build:

sound/pci/echoaudio/echoaudio.c:1879:10: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

authored by

Arnd Bergmann and committed by
Michal Simek
2c957902 71e7673d

+2 -2
+1 -1
arch/microblaze/include/asm/io.h
··· 36 36 #ifdef CONFIG_MMU 37 37 #define page_to_bus(page) (page_to_phys(page)) 38 38 39 - extern void iounmap(void __iomem *addr); 39 + extern void iounmap(volatile void __iomem *addr); 40 40 41 41 extern void __iomem *ioremap(phys_addr_t address, unsigned long size); 42 42 #define ioremap_nocache(addr, size) ioremap((addr), (size))
+1 -1
arch/microblaze/mm/pgtable.c
··· 127 127 } 128 128 EXPORT_SYMBOL(ioremap); 129 129 130 - void iounmap(void __iomem *addr) 130 + void iounmap(volatile void __iomem *addr) 131 131 { 132 132 if ((__force void *)addr > high_memory && 133 133 (unsigned long) addr < ioremap_bot)