* [linux-next:master 1631/2307] drivers/remoteproc/remoteproc_internal.h:131:7: error: call to undeclared function 'ioremap_prot'; ISO C99 and later do not support implicit function declarations
@ 2026-07-01 4:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-01 4:08 UTC (permalink / raw)
To: Ben Levinsky; +Cc: llvm, oe-kbuild-all, Mathieu Poirier
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: be5c93fa674f0fc3c8f359c2143abce6bbb422e6
commit: 50227acbf4e5173db0f05ed95414512e7783889f [1631/2307] remoteproc: Add common wc-ioremap carveout callbacks
config: s390-randconfig-002-20260701 (https://download.01.org/0day-ci/archive/20260701/202607011210.PI7XDDb1-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 6cc609bb250b21b47fc7d394b4019101e9983597)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260701/202607011210.PI7XDDb1-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607011210.PI7XDDb1-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/remoteproc/remoteproc_debugfs.c:25:
>> drivers/remoteproc/remoteproc_internal.h:131:7: error: call to undeclared function 'ioremap_prot'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
131 | va = ioremap_wc(mem->dma, mem->len);
| ^
arch/s390/include/asm/io.h:36:2: note: expanded from macro 'ioremap_wc'
36 | ioremap_prot((addr), (size), pgprot_writecombine(PAGE_KERNEL))
| ^
arch/s390/include/asm/io.h:30:22: note: expanded from macro 'ioremap_prot'
30 | #define ioremap_prot ioremap_prot
| ^
In file included from drivers/remoteproc/remoteproc_debugfs.c:25:
>> drivers/remoteproc/remoteproc_internal.h:131:5: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
131 | va = ioremap_wc(mem->dma, mem->len);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/remoteproc/remoteproc_internal.h:146:2: error: call to undeclared function 'iounmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
146 | iounmap((__force __iomem void *)mem->va);
| ^
arch/s390/include/asm/io.h:31:17: note: expanded from macro 'iounmap'
31 | #define iounmap iounmap
| ^
3 errors generated.
--
In file included from drivers/remoteproc/remoteproc_coredump.c:13:
>> drivers/remoteproc/remoteproc_internal.h:131:7: error: call to undeclared function 'ioremap_prot'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
131 | va = ioremap_wc(mem->dma, mem->len);
| ^
arch/s390/include/asm/io.h:36:2: note: expanded from macro 'ioremap_wc'
36 | ioremap_prot((addr), (size), pgprot_writecombine(PAGE_KERNEL))
| ^
arch/s390/include/asm/io.h:30:22: note: expanded from macro 'ioremap_prot'
30 | #define ioremap_prot ioremap_prot
| ^
In file included from drivers/remoteproc/remoteproc_coredump.c:13:
>> drivers/remoteproc/remoteproc_internal.h:131:5: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
131 | va = ioremap_wc(mem->dma, mem->len);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/remoteproc/remoteproc_internal.h:146:2: error: call to undeclared function 'iounmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
146 | iounmap((__force __iomem void *)mem->va);
| ^
arch/s390/include/asm/io.h:31:17: note: expanded from macro 'iounmap'
31 | #define iounmap iounmap
| ^
drivers/remoteproc/remoteproc_internal.h:146:2: note: did you mean 'vunmap'?
arch/s390/include/asm/io.h:31:17: note: expanded from macro 'iounmap'
31 | #define iounmap iounmap
| ^
include/linux/vmalloc.h:220:13: note: 'vunmap' declared here
220 | extern void vunmap(const void *addr);
| ^
3 errors generated.
vim +/ioremap_prot +131 drivers/remoteproc/remoteproc_internal.h
125
126 static inline int rproc_mem_entry_ioremap_wc(struct rproc *rproc,
127 struct rproc_mem_entry *mem)
128 {
129 void __iomem *va;
130
> 131 va = ioremap_wc(mem->dma, mem->len);
132 if (!va) {
133 dev_err(&rproc->dev, "Unable to map memory region: %pa+%zx\n",
134 &mem->dma, mem->len);
135 return -ENOMEM;
136 }
137
138 mem->va = (__force void *)va;
139
140 return 0;
141 }
142
143 static inline int rproc_mem_entry_iounmap(struct rproc *rproc,
144 struct rproc_mem_entry *mem)
145 {
> 146 iounmap((__force __iomem void *)mem->va);
147
148 return 0;
149 }
150
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-01 4:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 4:08 [linux-next:master 1631/2307] drivers/remoteproc/remoteproc_internal.h:131:7: error: call to undeclared function 'ioremap_prot'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox