All of lore.kernel.org
 help / color / mirror / Atom feed
* [jlayton:kdevops 2/2] fs/f2fs/file.c:1104:17: error: cannot assign to variable 'attr' with const-qualified type 'const struct iattr *'
@ 2026-10-12 18:50 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-12 18:50 UTC (permalink / raw)
  To: Jeff Layton; +Cc: llvm, oe-kbuild-all

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

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

only message in thread, other threads:[~2026-10-12 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-12 18:50 [jlayton:kdevops 2/2] fs/f2fs/file.c:1104:17: error: cannot assign to variable 'attr' with const-qualified type 'const struct iattr *' 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.