From: kernel test robot <lkp@intel.com>
To: Ben Levinsky <ben.levinsky@amd.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Mathieu Poirier <mathieu.poirier@linaro.org>
Subject: [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
Date: Wed, 01 Jul 2026 12:08:21 +0800 [thread overview]
Message-ID: <202607011210.PI7XDDb1-lkp@intel.com> (raw)
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
reply other threads:[~2026-07-01 4:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202607011210.PI7XDDb1-lkp@intel.com \
--to=lkp@intel.com \
--cc=ben.levinsky@amd.com \
--cc=llvm@lists.linux.dev \
--cc=mathieu.poirier@linaro.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.