From: kernel test robot <lkp@intel.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sat, 07 Mar 2026 07:25:24 +0800 [thread overview]
Message-ID: <202603070720.Q19LixIn-lkp@intel.com> (raw)
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
reply other threads:[~2026-03-06 23:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603070720.Q19LixIn-lkp@intel.com \
--to=lkp@intel.com \
--cc=amir73il@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.