diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2022-10-09 19:28:46 -0700 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2022-10-17 16:32:12 -0700 |
commit | c44f15c1c09481d50fd33478ebb5b8284f8f5edb (patch) | |
tree | 05f83c00fe5bfd112820c0eceea92e59c32802b9 /arch/arc/include/asm | |
parent | c8f878582838f57bc0984f47da2a8d275731240f (diff) | |
download | linux-c44f15c1c09481d50fd33478ebb5b8284f8f5edb.tar.gz linux-c44f15c1c09481d50fd33478ebb5b8284f8f5edb.tar.bz2 linux-c44f15c1c09481d50fd33478ebb5b8284f8f5edb.zip |
arc: iounmap() arg is volatile
Add 'volatile' to iounmap()'s argument to prevent build warnings.
This make it the same as other major architectures.
Placates these warnings: (12 such warnings)
../drivers/video/fbdev/riva/fbdev.c: In function 'rivafb_probe':
../drivers/video/fbdev/riva/fbdev.c:2067:42: error: passing argument 1 of 'iounmap' discards 'volatile' qualifier from pointer target type [-Werror=discarded-qualifiers]
2067 | iounmap(default_par->riva.PRAMIN);
Fixes: 1162b0701b14b ("ARC: I/O and DMA Mappings")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vineet Gupta <vgupta@kernel.org>
Cc: linux-snps-arc@lists.infradead.org
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/include/asm')
-rw-r--r-- | arch/arc/include/asm/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h index 8f777d6441a5..80347382a380 100644 --- a/arch/arc/include/asm/io.h +++ b/arch/arc/include/asm/io.h @@ -32,7 +32,7 @@ static inline void ioport_unmap(void __iomem *addr) { } -extern void iounmap(const void __iomem *addr); +extern void iounmap(const volatile void __iomem *addr); /* * io{read,write}{16,32}be() macros |