All of lore.kernel.org
 help / color / mirror / Atom feed
* [axboe-block:iter-ubuf 2/2] lib/iov_iter.c:1786:9: warning: no previous prototype for '__import_iovec_ubuf'
@ 2023-03-25  2:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-25  2:39 UTC (permalink / raw)
  To: Jens Axboe; +Cc: 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: parisc-randconfig-r006-20230322 (https://download.01.org/0day-ci/archive/20230325/202303251001.JGiCReZB-lkp@intel.com/config)
compiler: hppa-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/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=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc 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/202303251001.JGiCReZB-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> lib/iov_iter.c:1786:9: warning: no previous prototype for '__import_iovec_ubuf' [-Wmissing-prototypes]
    1786 | ssize_t __import_iovec_ubuf(int type, const struct iovec __user *uvec,
         |         ^~~~~~~~~~~~~~~~~~~


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  2:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25  2:39 [axboe-block:iter-ubuf 2/2] lib/iov_iter.c:1786:9: warning: no previous prototype for '__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.