arch/s390/include/asm/io.h:30:22: error: implicit declaration of function 'ioremap_prot'; did you mean 'ioremap_np'?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git rproc-next head: 70cfc11cfcfb07ca8eeed1f667cc0eec9e82aa71 commit: 50227acbf4e5173db0f05ed95414512e7783889f [1/7] remoteproc: Add common wc-ioremap carveout callbacks config: s390-randconfig-r134-20260630 (https://download.01.org/0day-ci/archive/20260630/[email protected]/config) compiler: s390-linux-gcc (GCC) 9.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:8,
from drivers/remoteproc/remoteproc_core.c:22:
drivers/remoteproc/remoteproc_internal.h: In function 'rproc_mem_entry_ioremap_wc':
>> arch/s390/include/asm/io.h:30:22: error: implicit declaration of function 'ioremap_prot'; did you mean 'ioremap_np'? [-Werror=implicit-function-declaration]
30 | #define ioremap_prot ioremap_prot
| ^~~~~~~~~~~~
arch/s390/include/asm/io.h:36:2: note: in expansion of macro 'ioremap_prot'
36 | ioremap_prot((addr), (size), pgprot_writecombine(PAGE_KERNEL))
| ^~~~~~~~~~~~
drivers/remoteproc/remoteproc_internal.h:131:7: note: in expansion of macro 'ioremap_wc'
131 | va = ioremap_wc(mem->dma, mem->len);
| ^~~~~~~~~~
In file included from drivers/remoteproc/remoteproc_core.c:39:
>> drivers/remoteproc/remoteproc_internal.h:131:5: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
131 | va = ioremap_wc(mem->dma, mem->len);
| ^
In file included from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:8,
from drivers/remoteproc/remoteproc_core.c:22:
drivers/remoteproc/remoteproc_internal.h: In function 'rproc_mem_entry_iounmap':
>> arch/s390/include/asm/io.h:31:17: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
31 | #define iounmap iounmap
| ^~~~~~~
drivers/remoteproc/remoteproc_internal.h:146:2: note: in expansion of macro 'iounmap'
146 | iounmap((__force __iomem void *)mem->va);
| ^~~~~~~ cc1: some warnings being treated as errors
--
In file included from include/linux/scatterlist.h:9,
from include/linux/devcoredump.h:12,
from drivers/remoteproc/remoteproc_coredump.c:9:
drivers/remoteproc/remoteproc_internal.h: In function 'rproc_mem_entry_ioremap_wc':
>> arch/s390/include/asm/io.h:30:22: error: implicit declaration of function 'ioremap_prot'; did you mean 'ioremap_np'? [-Werror=implicit-function-declaration]
30 | #define ioremap_prot ioremap_prot
| ^~~~~~~~~~~~
arch/s390/include/asm/io.h:36:2: note: in expansion of macro 'ioremap_prot'
36 | ioremap_prot((addr), (size), pgprot_writecombine(PAGE_KERNEL))
| ^~~~~~~~~~~~
drivers/remoteproc/remoteproc_internal.h:131:7: note: in expansion of macro 'ioremap_wc'
131 | va = ioremap_wc(mem->dma, mem->len);
| ^~~~~~~~~~
In file included from drivers/remoteproc/remoteproc_coredump.c:13:
>> drivers/remoteproc/remoteproc_internal.h:131:5: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
131 | va = ioremap_wc(mem->dma, mem->len);
| ^
In file included from include/linux/scatterlist.h:9,
from include/linux/devcoredump.h:12,
from drivers/remoteproc/remoteproc_coredump.c:9:
drivers/remoteproc/remoteproc_internal.h: In function 'rproc_mem_entry_iounmap':
arch/s390/include/asm/io.h:31:17: error: implicit declaration of function 'iounmap'; did you mean 'vunmap'? [-Werror=implicit-function-declaration]
31 | #define iounmap iounmap
| ^~~~~~~
drivers/remoteproc/remoteproc_internal.h:146:2: note: in expansion of macro 'iounmap'
146 | iounmap((__force __iomem void *)mem->va);
| ^~~~~~~cc1: some warnings being treated as errors
vim +30 arch/s390/include/asm/io.h
cd24834130ac655 Jan Glauber 2012-11-29 26 b43b3fff042d08a Baoquan He 2023-07-06 27 /* b43b3fff042d08a Baoquan He 2023-07-06 28 * I/O memory mapping functions. b43b3fff042d08a Baoquan He 2023-07-06 29 */ b43b3fff042d08a Baoquan He 2023-07-06 @30 #define ioremap_prot ioremap_prot b43b3fff042d08a Baoquan He 2023-07-06 @31 #define iounmap iounmap b43b3fff042d08a Baoquan He 2023-07-06 32
:::::: The code at line 30 was first introduced by commit
:::::: b43b3fff042d08a0bcc0a6d87c3216b44860298e s390: mm: convert to GENERIC_IOREMAP
:::::: TO: Baoquan He <[email protected]> :::::: CC: Andrew Morton <[email protected]>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki