* [hch-misc:hyperv-vmap 1/6] include/asm-generic/io.h:959:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
@ 2021-08-30 21:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-30 21:17 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3163 bytes --]
tree: git://git.infradead.org/users/hch/misc.git hyperv-vmap
head: 8248f295928aded3364a1e54a4e0022e93d3610c
commit: 96214e6115f0f3a234dfb781bd549c08da3b1b2e [1/6] mm: move ioremap_page_range to vmalloc.c
config: riscv-nommu_k210_defconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc hyperv-vmap
git checkout 96214e6115f0f3a234dfb781bd549c08da3b1b2e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/ioremap.c:14:15: warning: no previous prototype for 'ioremap_prot' [-Wmissing-prototypes]
14 | void __iomem *ioremap_prot(phys_addr_t addr, size_t size, unsigned long prot)
| ^~~~~~~~~~~~
In file included from arch/riscv/include/asm/io.h:136,
from include/linux/io.h:13,
from mm/ioremap.c:11:
>> include/asm-generic/io.h:959:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
959 | #define iounmap iounmap
| ^~~~~~~
mm/ioremap.c:45:6: note: in expansion of macro 'iounmap'
45 | void iounmap(volatile void __iomem *addr)
| ^~~~~~~
include/asm-generic/io.h:959:17: note: previous definition of 'iounmap' with type 'void(void *)'
959 | #define iounmap iounmap
| ^~~~~~~
include/asm-generic/io.h:960:20: note: in expansion of macro 'iounmap'
960 | static inline void iounmap(void __iomem *addr)
| ^~~~~~~
vim +959 include/asm-generic/io.h
3f7e212df82ca0 Arnd Bergmann 2009-05-13 957
b3ada9d0ce8d28 Greentime Hu 2017-11-22 958 #ifndef iounmap
b3ada9d0ce8d28 Greentime Hu 2017-11-22 @959 #define iounmap iounmap
b3ada9d0ce8d28 Greentime Hu 2017-11-22 960 static inline void iounmap(void __iomem *addr)
b3ada9d0ce8d28 Greentime Hu 2017-11-22 961 {
b3ada9d0ce8d28 Greentime Hu 2017-11-22 962 }
b3ada9d0ce8d28 Greentime Hu 2017-11-22 963 #endif
80b0ca98f91ddb Christoph Hellwig 2019-08-13 964 #elif defined(CONFIG_GENERIC_IOREMAP)
ca5999fde0a176 Mike Rapoport 2020-06-08 965 #include <linux/pgtable.h>
80b0ca98f91ddb Christoph Hellwig 2019-08-13 966
:::::: The code at line 959 was first introduced by commit
:::::: b3ada9d0ce8d286c8bbbb02fdbddec5036242b42 asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU
:::::: TO: Greentime Hu <greentime@andestech.com>
:::::: CC: Greentime Hu <greentime@andestech.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 8627 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-30 21:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 21:17 [hch-misc:hyperv-vmap 1/6] include/asm-generic/io.h:959:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.