From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jlayton:ctime 2/5] fs/overlayfs/util.c:1119:6: error: call to undeclared function 'is_multigrain_ctime'; ISO C99 and later do not support implicit function declarations
Date: Sat, 22 Apr 2023 10:05:04 +0800 [thread overview]
Message-ID: <202304220930.6WSX7mOI-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ctime
head: 54dd444fe05963240ab071845d5de2b1da6d7688
commit: f24a43a08ee5e1ae888e58bad45356f8c7985de4 [2/5] overlayfs: flag the ctime as QUERIED on multigrain timestamp when copying up
config: mips-randconfig-r006-20230421 (https://download.01.org/0day-ci/archive/20230422/202304220930.6WSX7mOI-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 mips cross compiling tool for clang build
# apt-get install binutils-mipsel-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=f24a43a08ee5e1ae888e58bad45356f8c7985de4
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ctime
git checkout f24a43a08ee5e1ae888e58bad45356f8c7985de4
# 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=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash fs/overlayfs/
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/202304220930.6WSX7mOI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/overlayfs/util.c:1119:6: error: call to undeclared function 'is_multigrain_ctime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (is_multigrain_ctime(realinode)) {
^
fs/overlayfs/util.c:1119:6: note: did you mean 'is_multigrain_ts'?
include/linux/fs.h:2187:20: note: 'is_multigrain_ts' declared here
static inline bool is_multigrain_ts(struct inode *inode)
^
1 error generated.
vim +/is_multigrain_ctime +1119 fs/overlayfs/util.c
1088
1089 /*
1090 * ovl_copyattr() - copy inode attributes from layer to ovl inode
1091 *
1092 * When overlay copies inode information from an upper or lower layer to the
1093 * relevant overlay inode it will apply the idmapping of the upper or lower
1094 * layer when doing so ensuring that the ovl inode ownership will correctly
1095 * reflect the ownership of the idmapped upper or lower layer. For example, an
1096 * idmapped upper or lower layer mapping id 1001 to id 1000 will take care to
1097 * map any lower or upper inode owned by id 1001 to id 1000. These mapping
1098 * helpers are nops when the relevant layer isn't idmapped.
1099 */
1100 void ovl_copyattr(struct inode *inode)
1101 {
1102 struct path realpath;
1103 struct inode *realinode;
1104 struct mnt_idmap *real_idmap;
1105 vfsuid_t vfsuid;
1106 vfsgid_t vfsgid;
1107
1108 ovl_i_path_real(inode, &realpath);
1109 realinode = d_inode(realpath.dentry);
1110 real_idmap = mnt_idmap(realpath.mnt);
1111
1112 vfsuid = i_uid_into_vfsuid(real_idmap, realinode);
1113 vfsgid = i_gid_into_vfsgid(real_idmap, realinode);
1114
1115 inode->i_uid = vfsuid_into_kuid(vfsuid);
1116 inode->i_gid = vfsgid_into_kgid(vfsgid);
1117 inode->i_mode = realinode->i_mode;
1118 inode->i_atime = realinode->i_atime;
> 1119 if (is_multigrain_ctime(realinode)) {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-04-22 2:05 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=202304220930.6WSX7mOI-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox