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:kdevops 2/2] fs/f2fs/file.c:1104:17: error: cannot assign to variable 'attr' with const-qualified type 'const struct iattr *'
Date: Tue, 13 Oct 2026 02:50:19 +0800 [thread overview]
Message-ID: <202610130215.eJAMJB4X-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git kdevops
head: 664d401caf1306ec655f7e729082dfccd36dc5da
commit: 664d401caf1306ec655f7e729082dfccd36dc5da [2/2] f2fs: opt in to multigrain timestamps
config: arm-randconfig-1001-20261012 (https://download.01.org/0day-ci/archive/20261013/202610130215.eJAMJB4X-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261013/202610130215.eJAMJB4X-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/202610130215.eJAMJB4X-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/f2fs/file.c:1104:17: error: cannot assign to variable 'attr' with const-qualified type 'const struct iattr *'
1104 | attr->ia_valid &= ~ATTR_MODE;
| ~~~~~~~~~~~~~~ ^
fs/f2fs/file.c:1100:48: note: variable 'attr' declared const here
1100 | struct inode *inode, const struct iattr *attr)
| ~~~~~~~~~~~~~~~~~~~~^~~~
fs/f2fs/file.c:1113:18: error: cannot assign to variable 'attr' with const-qualified type 'const struct iattr *'
1113 | attr->ia_valid |= ATTR_MODE;
| ~~~~~~~~~~~~~~ ^
fs/f2fs/file.c:1100:48: note: variable 'attr' declared const here
1100 | struct inode *inode, const struct iattr *attr)
| ~~~~~~~~~~~~~~~~~~~~^~~~
2 errors generated.
vim +1104 fs/f2fs/file.c
1097
1098 #ifdef CONFIG_F2FS_FS_POSIX_ACL
1099 static void __setattr_copy(struct mnt_idmap *idmap,
1100 struct inode *inode, const struct iattr *attr)
1101 {
1102 unsigned int ia_valid = attr->ia_valid;
1103
> 1104 attr->ia_valid &= ~ATTR_MODE;
1105
1106 setattr_copy(idmap, inode, attr);
1107 if (ia_valid & ATTR_MODE) {
1108 umode_t mode = attr->ia_mode;
1109
1110 if (!in_group_or_capable(idmap, inode, i_gid_into_vfsgid(idmap, inode)))
1111 mode &= ~S_ISGID;
1112 set_acl_inode(inode, mode);
1113 attr->ia_valid |= ATTR_MODE;
1114 }
1115 }
1116 #else
1117 #define __setattr_copy setattr_copy
1118 #endif
1119
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-12 18:50 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=202610130215.eJAMJB4X-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 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.