* [axboe-block:iter-ubuf 2/2] lib/iov_iter.c:1786:9: warning: no previous prototype for function '__import_iovec_ubuf'
@ 2023-03-25 4:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-25 4:53 UTC (permalink / raw)
To: Jens Axboe; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git iter-ubuf
head: 8ccf20004bd671f70362eac93833c12f5ce89c66
commit: 8ccf20004bd671f70362eac93833c12f5ce89c66 [2/2] iov_iter: import single vector iovecs as ITER_UBUF
config: arm-randconfig-r046-20230322 (https://download.01.org/0day-ci/archive/20230325/202303251233.dDz1N6Ph-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=8ccf20004bd671f70362eac93833c12f5ce89c66
git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags axboe-block iter-ubuf
git checkout 8ccf20004bd671f70362eac93833c12f5ce89c66
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
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/202303251233.dDz1N6Ph-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/iov_iter.c:1786:9: warning: no previous prototype for function '__import_iovec_ubuf' [-Wmissing-prototypes]
ssize_t __import_iovec_ubuf(int type, const struct iovec __user *uvec,
^
lib/iov_iter.c:1786:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
ssize_t __import_iovec_ubuf(int type, const struct iovec __user *uvec,
^
static
1 warning generated.
vim +/__import_iovec_ubuf +1786 lib/iov_iter.c
1782
1783 /*
1784 * Single segment iovec supplied by the user, import it as ITER_UBUF.
1785 */
> 1786 ssize_t __import_iovec_ubuf(int type, const struct iovec __user *uvec,
1787 struct iovec **iovp, struct iov_iter *i,
1788 bool compat)
1789 {
1790 struct iovec *iov = *iovp;
1791 ssize_t ret;
1792
1793 if (compat)
1794 ret = copy_compat_iovec_from_user(iov, uvec, 1);
1795 else
1796 ret = copy_iovec_from_user(iov, uvec, 1);
1797 if (unlikely(ret))
1798 return ret;
1799
1800 import_ubuf(type, iov->iov_base, iov->iov_len, i);
1801 *iovp = NULL;
1802 return i->count;
1803 }
1804
--
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-03-25 4:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-25 4:53 [axboe-block:iter-ubuf 2/2] lib/iov_iter.c:1786:9: warning: no previous prototype for function '__import_iovec_ubuf' 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.