[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207270041.8fQ9kcrB-lkp@intel.com>
Date: Wed, 27 Jul 2022 00:16:28 +0800
From: kernel test robot <lkp@...el.com>
To: Keith Busch <kbusch@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [kbusch:dma-prereg-v5 5/6] include/linux/uaccess.h:124: undefined
reference to `io_dma_unmap'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kbusch/linux.git dma-prereg-v5
head: 4f4a93bf02dcf20e9a4a3ac0c9cd39d79e9e540e
commit: 1b0c9acb050749ce7ad964cc66eef72779835832 [5/6] io_uring: add support for dma pre-mapping
config: xtensa-randconfig-r001-20220724 (https://download.01.org/0day-ci/archive/20220727/202207270041.8fQ9kcrB-lkp@intel.com/config)
compiler: xtensa-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://git.kernel.org/pub/scm/linux/kernel/git/kbusch/linux.git/commit/?id=1b0c9acb050749ce7ad964cc66eef72779835832
git remote add kbusch https://git.kernel.org/pub/scm/linux/kernel/git/kbusch/linux.git
git fetch --no-tags kbusch dma-prereg-v5
git checkout 1b0c9acb050749ce7ad964cc66eef72779835832
# 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=xtensa SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
xtensa-linux-ld: io_uring/rsrc.o: in function `_copy_from_user':
>> include/linux/uaccess.h:124: undefined reference to `io_dma_unmap'
xtensa-linux-ld: io_uring/rsrc.o: in function `io_buffer_unmap':
io_uring/rsrc.c:151: undefined reference to `io_dma_unmap'
vim +124 include/linux/uaccess.h
d597580d373774 Al Viro 2017-03-20 110
d597580d373774 Al Viro 2017-03-20 111 #ifdef INLINE_COPY_FROM_USER
9dd819a15162f8 Kees Cook 2019-09-25 112 static inline __must_check unsigned long
d597580d373774 Al Viro 2017-03-20 113 _copy_from_user(void *to, const void __user *from, unsigned long n)
d597580d373774 Al Viro 2017-03-20 114 {
d597580d373774 Al Viro 2017-03-20 115 unsigned long res = n;
9c5f6908de03a4 Al Viro 2017-06-29 116 might_fault();
4d0e9df5e43dba Albert van der Linde 2020-10-15 117 if (!should_fail_usercopy() && likely(access_ok(from, n))) {
76d6f06c36a3b5 Marco Elver 2020-01-21 118 instrument_copy_from_user(to, from, n);
d597580d373774 Al Viro 2017-03-20 119 res = raw_copy_from_user(to, from, n);
9c5f6908de03a4 Al Viro 2017-06-29 120 }
d597580d373774 Al Viro 2017-03-20 121 if (unlikely(res))
d597580d373774 Al Viro 2017-03-20 122 memset(to + (n - res), 0, res);
d597580d373774 Al Viro 2017-03-20 123 return res;
d597580d373774 Al Viro 2017-03-20 @124 }
d597580d373774 Al Viro 2017-03-20 125 #else
9dd819a15162f8 Kees Cook 2019-09-25 126 extern __must_check unsigned long
d597580d373774 Al Viro 2017-03-20 127 _copy_from_user(void *, const void __user *, unsigned long);
d597580d373774 Al Viro 2017-03-20 128 #endif
d597580d373774 Al Viro 2017-03-20 129
:::::: The code at line 124 was first introduced by commit
:::::: d597580d373774b1bdab84b3d26ff0b55162b916 generic ...copy_..._user primitives
:::::: TO: Al Viro <viro@...iv.linux.org.uk>
:::::: CC: Al Viro <viro@...iv.linux.org.uk>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists