* [jgunthorpe:rlist 23/28] include/rdma/ib_verbs.h:4208:52: error: passing argument 2 of 'ib_dma_virt_map_rlist' from incompatible pointer type
@ 2023-04-18 10:46 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-18 10:46 UTC (permalink / raw)
To: Jason Gunthorpe; +Cc: oe-kbuild-all
tree: https://github.com/jgunthorpe/linux rlist
head: a7cd9881872ca2566ca744155c307ca414341e04
commit: 0ff1a4c87640438a31f239c61df8aba1dc348d5f [23/28] RDMA: Add IB DMA API wrappers for rlist
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230418/202304181842.0QpIgcuY-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.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
# https://github.com/jgunthorpe/linux/commit/0ff1a4c87640438a31f239c61df8aba1dc348d5f
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe rlist
git checkout 0ff1a4c87640438a31f239c61df8aba1dc348d5f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash security/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304181842.0QpIgcuY-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/lsm_audit.h:25,
from security/lsm_audit.c:29:
include/rdma/ib_verbs.h:4198:58: warning: 'struct rlist_dma' declared inside parameter list will not be visible outside of this definition or declaration
4198 | int ib_dma_virt_map_rlist(struct rlist_cpu *rcpu, struct rlist_dma *rdma);
| ^~~~~~~~~
include/rdma/ib_verbs.h:4203:49: warning: 'struct rlist_dma_segmentation' declared inside parameter list will not be visible outside of this definition or declaration
4203 | const struct rlist_dma_segmentation *segment,
| ^~~~~~~~~~~~~~~~~~~~~~
include/rdma/ib_verbs.h:4202:43: warning: 'struct rlist_dma' declared inside parameter list will not be visible outside of this definition or declaration
4202 | struct rlist_dma *rdma,
| ^~~~~~~~~
include/rdma/ib_verbs.h: In function 'ib_dma_map_rlist':
>> include/rdma/ib_verbs.h:4208:52: error: passing argument 2 of 'ib_dma_virt_map_rlist' from incompatible pointer type [-Werror=incompatible-pointer-types]
4208 | return ib_dma_virt_map_rlist(rcpu, rdma);
| ^~~~
| |
| struct rlist_dma *
include/rdma/ib_verbs.h:4198:69: note: expected 'struct rlist_dma *' but argument is of type 'struct rlist_dma *'
4198 | int ib_dma_virt_map_rlist(struct rlist_cpu *rcpu, struct rlist_dma *rdma);
| ~~~~~~~~~~~~~~~~~~^~~~
>> include/rdma/ib_verbs.h:4209:16: error: implicit declaration of function 'dma_map_rlist'; did you mean 'ib_dma_map_rlist'? [-Werror=implicit-function-declaration]
4209 | return dma_map_rlist(dev->dma_device, rcpu, rdma, segment, dir, attrs,
| ^~~~~~~~~~~~~
| ib_dma_map_rlist
include/rdma/ib_verbs.h: At top level:
include/rdma/ib_verbs.h:4214:31: warning: 'struct rlist_dma' declared inside parameter list will not be visible outside of this definition or declaration
4214 | void rlist_dma_destroy(struct rlist_dma *rdma);
| ^~~~~~~~~
include/rdma/ib_verbs.h:4217:46: warning: 'struct rlist_dma' declared inside parameter list will not be visible outside of this definition or declaration
4217 | struct rlist_dma *rdma,
| ^~~~~~~~~
include/rdma/ib_verbs.h: In function 'ib_dma_unmap_rlist':
>> include/rdma/ib_verbs.h:4222:35: error: passing argument 1 of 'rlist_dma_destroy' from incompatible pointer type [-Werror=incompatible-pointer-types]
4222 | rlist_dma_destroy(rdma);
| ^~~~
| |
| struct rlist_dma *
include/rdma/ib_verbs.h:4214:42: note: expected 'struct rlist_dma *' but argument is of type 'struct rlist_dma *'
4214 | void rlist_dma_destroy(struct rlist_dma *rdma);
| ~~~~~~~~~~~~~~~~~~^~~~
>> include/rdma/ib_verbs.h:4224:24: error: implicit declaration of function 'dma_unmap_rlist'; did you mean 'ib_dma_unmap_rlist'? [-Werror=implicit-function-declaration]
4224 | return dma_unmap_rlist(dev->dma_device, rdma, dir, attrs);
| ^~~~~~~~~~~~~~~
| ib_dma_unmap_rlist
include/rdma/ib_verbs.h:4224:24: error: 'return' with a value, in function returning void [-Werror=return-type]
4224 | return dma_unmap_rlist(dev->dma_device, rdma, dir, attrs);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/rdma/ib_verbs.h:4216:20: note: declared here
4216 | static inline void ib_dma_unmap_rlist(struct ib_device *dev,
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/ib_dma_virt_map_rlist +4208 include/rdma/ib_verbs.h
4199
4200 static inline int ib_dma_map_rlist(struct ib_device *dev,
4201 struct rlist_cpu *rcpu,
4202 struct rlist_dma *rdma,
> 4203 const struct rlist_dma_segmentation *segment,
4204 enum dma_data_direction dir,
4205 unsigned long attrs, gfp_t gfp)
4206 {
4207 if (ib_uses_virt_dma(dev))
> 4208 return ib_dma_virt_map_rlist(rcpu, rdma);
> 4209 return dma_map_rlist(dev->dma_device, rcpu, rdma, segment, dir, attrs,
4210 gfp);
4211 }
4212
4213 /* Prevent include explosion */
> 4214 void rlist_dma_destroy(struct rlist_dma *rdma);
4215
4216 static inline void ib_dma_unmap_rlist(struct ib_device *dev,
4217 struct rlist_dma *rdma,
4218 enum dma_data_direction dir,
4219 unsigned long attrs)
4220 {
4221 if (ib_uses_virt_dma(dev))
> 4222 rlist_dma_destroy(rdma);
4223 else
> 4224 return dma_unmap_rlist(dev->dma_device, rdma, dir, attrs);
4225 }
4226
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-18 10:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 10:46 [jgunthorpe:rlist 23/28] include/rdma/ib_verbs.h:4208:52: error: passing argument 2 of 'ib_dma_virt_map_rlist' from incompatible pointer type 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.