Re: [rdma:wip/jgg-for-next 89/95] (.text+0x1320): multiple definition of `ib_umem_dmabuf_get_pinned'; drivers/infiniband/core/nldev.o:(.text+0xc260): first defined here
From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2021-10-28 11:57:56
Also in:
oe-kbuild-all
On Thu, Oct 28, 2021 at 11:26:45AM +0300, Gal Pressman wrote:
On 28/10/2021 07:46, kernel test robot wrote:quoted
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/jgg-for-next head: c200e6a625c01880074a0c8137361dd8a927fbb4 commit: 4f9e1c0814f9ca8002820d4f7a38d0992add454e [89/95] RDMA/umem: Allow pinned dmabuf umem usage config: ia64-defconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=4f9e1c0814f9ca8002820d4f7a38d0992add454e git remote add rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git git fetch --no-tags rdma wip/jgg-for-next git checkout 4f9e1c0814f9ca8002820d4f7a38d0992add454e # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All error/warnings (new ones prefixed by >>): In file included from drivers/infiniband/core/uverbs.h:47, from drivers/infiniband/core/nldev.c:44:quoted
quoted
include/rdma/ib_umem.h:187:24: warning: no previous prototype for 'ib_umem_dmabuf_get_pinned' [-Wmissing-prototypes]187 | struct ib_umem_dmabuf *ib_umem_dmabuf_get_pinned(struct ib_device *device, | ^~~~~~~~~~~~~~~~~~~~~~~~~quoted
quoted
(.text+0x1320): multiple definition of `ib_umem_dmabuf_get_pinned'; drivers/infiniband/core/nldev.o:(.text+0xc260): first defined hereOh crap, this obviously needs a 'static inline'.. Jason do you want to squash it or should I submit a patch?
I fixed it Jason