All of lore.kernel.org
 help / color / mirror / Atom feed
* [amir73il:fan_mark_userns 4/10] fs/erofs/ishare.c:117:2: error: call to undeclared function 'backing_file_set_user_path'; ISO C99 and later do not support implicit function declarations
@ 2026-03-06 23:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-06 23:25 UTC (permalink / raw)
  To: Amir Goldstein; +Cc: oe-kbuild-all

tree:   https://github.com/amir73il/linux fan_mark_userns
head:   4d7cad2f077449767de4cc8ab6d869f080a121a2
commit: b66d24d8d654b23fbadf70e520e34d945219e8e5 [4/10] backing_file: store user_path_file
config: i386-randconfig-002-20260307 (https://download.01.org/0day-ci/archive/20260307/202603070720.Q19LixIn-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260307/202603070720.Q19LixIn-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603070720.Q19LixIn-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/erofs/ishare.c:109:72: error: too few arguments to function call, expected 3, have 2
     109 |         realfile = alloc_empty_backing_file(O_RDONLY|O_NOATIME, current_cred());
         |                    ~~~~~~~~~~~~~~~~~~~~~~~~                                   ^
   fs/erofs/../internal.h:109:14: note: 'alloc_empty_backing_file' declared here
     109 | struct file *alloc_empty_backing_file(int flags, const struct cred *cred,
         |              ^                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     110 |                                       const struct cred *user_cred);
         |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/erofs/ishare.c:117:2: error: call to undeclared function 'backing_file_set_user_path'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     117 |         backing_file_set_user_path(realfile, &file->f_path);
         |         ^
   fs/erofs/ishare.c:117:2: note: did you mean 'backing_file_open_user_path'?
   fs/erofs/../internal.h:111:6: note: 'backing_file_open_user_path' declared here
     111 | void backing_file_open_user_path(struct file *f, const struct path *path);
         |      ^
   2 errors generated.


vim +/backing_file_set_user_path +117 fs/erofs/ishare.c

5ef3208e3be50aa Hongzhen Luo 2026-01-23  101  
5ef3208e3be50aa Hongzhen Luo 2026-01-23  102  static int erofs_ishare_file_open(struct inode *inode, struct file *file)
5ef3208e3be50aa Hongzhen Luo 2026-01-23  103  {
5ef3208e3be50aa Hongzhen Luo 2026-01-23  104  	struct inode *sharedinode = EROFS_I(inode)->sharedinode;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  105  	struct file *realfile;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  106  
5ef3208e3be50aa Hongzhen Luo 2026-01-23  107  	if (file->f_flags & O_DIRECT)
5ef3208e3be50aa Hongzhen Luo 2026-01-23  108  		return -EINVAL;
5ef3208e3be50aa Hongzhen Luo 2026-01-23 @109  	realfile = alloc_empty_backing_file(O_RDONLY|O_NOATIME, current_cred());
5ef3208e3be50aa Hongzhen Luo 2026-01-23  110  	if (IS_ERR(realfile))
5ef3208e3be50aa Hongzhen Luo 2026-01-23  111  		return PTR_ERR(realfile);
5ef3208e3be50aa Hongzhen Luo 2026-01-23  112  	ihold(sharedinode);
5ef3208e3be50aa Hongzhen Luo 2026-01-23  113  	realfile->f_op = &erofs_file_fops;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  114  	realfile->f_inode = sharedinode;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  115  	realfile->f_mapping = sharedinode->i_mapping;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  116  	path_get(&file->f_path);
5ef3208e3be50aa Hongzhen Luo 2026-01-23 @117  	backing_file_set_user_path(realfile, &file->f_path);
5ef3208e3be50aa Hongzhen Luo 2026-01-23  118  
5ef3208e3be50aa Hongzhen Luo 2026-01-23  119  	file_ra_state_init(&realfile->f_ra, file->f_mapping);
5ef3208e3be50aa Hongzhen Luo 2026-01-23  120  	realfile->private_data = EROFS_I(inode);
5ef3208e3be50aa Hongzhen Luo 2026-01-23  121  	file->private_data = realfile;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  122  	return 0;
5ef3208e3be50aa Hongzhen Luo 2026-01-23  123  }
5ef3208e3be50aa Hongzhen Luo 2026-01-23  124  

:::::: The code at line 117 was first introduced by commit
:::::: 5ef3208e3be50aa08b4e7a2832f34e16d42c08b3 erofs: introduce the page cache share feature

:::::: TO: Hongzhen Luo <hongzhen@linux.alibaba.com>
:::::: CC: Gao Xiang <hsiangkao@linux.alibaba.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-06 23:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-06 23:25 [amir73il:fan_mark_userns 4/10] fs/erofs/ishare.c:117:2: error: call to undeclared function 'backing_file_set_user_path'; ISO C99 and later do not support implicit function declarations 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.