From: kernel test robot <lkp@intel.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jgunthorpe:rlist 23/28] 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
Date: Tue, 18 Apr 2023 17:45:00 +0800 [thread overview]
Message-ID: <202304181757.lhKaMuIt-lkp@intel.com> (raw)
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/202304181757.lhKaMuIt-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/selinux/
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/202304181757.lhKaMuIt-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/lsm_audit.h:25,
from security/selinux/include/avc.h:17,
from security/selinux/avc.c:30:
>> 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 +4198 include/rdma/ib_verbs.h
4197
> 4198 int ib_dma_virt_map_rlist(struct rlist_cpu *rcpu, struct rlist_dma *rdma);
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
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-04-18 9:45 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=202304181757.lhKaMuIt-lkp@intel.com \
--to=lkp@intel.com \
--cc=jgg@nvidia.com \
--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.