llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH RFC 1/2] fs: split off vfs_getdents function of getdents64 syscall
       [not found] <20230422-uring-getdents-v1-1-14c1db36e98c@codewreck.org>
@ 2023-04-22 10:37 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-22 10:37 UTC (permalink / raw)
  To: Dominique Martinet; +Cc: llvm, oe-kbuild-all

Hi Dominique,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on 6a8f57ae2eb07ab39a6f0ccad60c760743051026]

url:    https://github.com/intel-lab-lkp/linux/commits/Dominique-Martinet/fs-split-off-vfs_getdents-function-of-getdents64-syscall/20230422-164240
base:   6a8f57ae2eb07ab39a6f0ccad60c760743051026
patch link:    https://lore.kernel.org/r/20230422-uring-getdents-v1-1-14c1db36e98c%40codewreck.org
patch subject: [PATCH RFC 1/2] fs: split off vfs_getdents function of getdents64 syscall
config: powerpc-randconfig-r023-20230421 (https://download.01.org/0day-ci/archive/20230422/202304221809.YNFmMFTD-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/intel-lab-lkp/linux/commit/467765480454254c23e5e98ee66239af7810fdf6
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Dominique-Martinet/fs-split-off-vfs_getdents-function-of-getdents64-syscall/20230422-164240
        git checkout 467765480454254c23e5e98ee66239af7810fdf6
        # 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=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc 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/202304221809.YNFmMFTD-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> fs/readdir.c:361:5: warning: no previous prototype for function 'vfs_getdents' [-Wmissing-prototypes]
   int vfs_getdents(struct file *file, struct linux_dirent64 __user *dirent,
       ^
   fs/readdir.c:361:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int vfs_getdents(struct file *file, struct linux_dirent64 __user *dirent,
   ^
   static 
   1 warning generated.


vim +/vfs_getdents +361 fs/readdir.c

   353	
   354	
   355	/**
   356	 * vfs_getdents - getdents without fdget
   357	 * @file    : pointer to file struct of directory
   358	 * @dirent  : pointer to user directory structure
   359	 * @count   : size of buffer
   360	 */
 > 361	int vfs_getdents(struct file *file, struct linux_dirent64 __user *dirent,
   362			 unsigned int count)
   363	{
   364		struct getdents_callback64 buf = {
   365			.ctx.actor = filldir64,
   366			.count = count,
   367			.current_dir = dirent
   368		};
   369		int error;
   370	
   371		error = iterate_dir(file, &buf.ctx);
   372		if (error >= 0)
   373			error = buf.error;
   374		if (buf.prev_reclen) {
   375			struct linux_dirent64 __user * lastdirent;
   376			typeof(lastdirent->d_off) d_off = buf.ctx.pos;
   377	
   378			lastdirent = (void __user *) buf.current_dir - buf.prev_reclen;
   379			if (put_user(d_off, &lastdirent->d_off))
   380				error = -EFAULT;
   381			else
   382				error = count - buf.count;
   383		}
   384		return error;
   385	}
   386	

-- 
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-04-22 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230422-uring-getdents-v1-1-14c1db36e98c@codewreck.org>
2023-04-22 10:37 ` [PATCH RFC 1/2] fs: split off vfs_getdents function of getdents64 syscall kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).