Re: [PATCH] btrfs: check if root is readonly when setting posix acl

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all,dev.linux.lists.llvm,org.kernel.vger.linux-btrfs
Message-ID <[email protected]>
Hi Sun,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v7.2-rc6]
[cannot apply to kdave/for-next next-20260807]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Sun-YangKai/btrfs-check-if-root-is-readonly-when-setting-posix-acl/20260807-183739
base:   linus/master
patch link:    https://lore.kernel.org/r/20260709071529.4033-1-sunk67188%40gmail.com
patch subject: [PATCH] btrfs: check if root is readonly when setting posix acl
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260809/[email protected]/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260809/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> fs/btrfs/acl.c:110:26: error: call to undeclared function 'BTRFS_I'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     110 |         if (btrfs_root_readonly(BTRFS_I(inode)->root))
         |                                 ^
>> fs/btrfs/acl.c:110:42: error: member reference type 'int' is not a pointer
     110 |         if (btrfs_root_readonly(BTRFS_I(inode)->root))
         |                                 ~~~~~~~~~~~~~~  ^
   2 errors generated.


vim +/BTRFS_I +110 fs/btrfs/acl.c

   102	
   103	int btrfs_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
   104			  struct posix_acl *acl, int type)
   105	{
   106		int ret;
   107		struct inode *inode = d_inode(dentry);
   108		umode_t old_mode = inode->i_mode;
   109	
 > 110		if (btrfs_root_readonly(BTRFS_I(inode)->root))

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.