Messages in this thread | | | Date | Thu, 9 Jun 2022 23:39:31 +0800 | From | kernel test robot <> | Subject | [linux-stable-rc:queue/5.15 1/112] fs/ntfs3/xattr.c:684:12: error: redefinition of 'ntfs_xattr_get_acl' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.15 head: 160dcf43b181822e124054c0ec05acb0e1c473e4 commit: fde9576bccfe1dcaf4b0ed729570a74d9bd485f7 [1/112] fs/ntfs3: Restore ntfs_xattr_get_acl and ntfs_xattr_set_acl functions config: arm64-randconfig-r012-20220609 (https://download.01.org/0day-ci/archive/20220609/202206092357.sMCUOMZm-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 971e13d69e3e7b687213fef22952be6a328c426c) 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 arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=fde9576bccfe1dcaf4b0ed729570a74d9bd485f7 git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc queue/5.15 git checkout fde9576bccfe1dcaf4b0ed729570a74d9bd485f7 # 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=arm64 SHELL=/bin/bash fs/ntfs3/
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> fs/ntfs3/xattr.c:684:12: error: redefinition of 'ntfs_xattr_get_acl' static int ntfs_xattr_get_acl(struct user_namespace *mnt_userns, ^ fs/ntfs3/xattr.c:623:12: note: previous definition is here static int ntfs_xattr_get_acl(struct user_namespace *mnt_userns, ^ >> fs/ntfs3/xattr.c:709:12: error: redefinition of 'ntfs_xattr_set_acl' static int ntfs_xattr_set_acl(struct user_namespace *mnt_userns, ^ fs/ntfs3/xattr.c:648:12: note: previous definition is here static int ntfs_xattr_set_acl(struct user_namespace *mnt_userns, ^ 2 errors generated.
vim +/ntfs_xattr_get_acl +684 fs/ntfs3/xattr.c
683 > 684 static int ntfs_xattr_get_acl(struct user_namespace *mnt_userns, 685 struct inode *inode, int type, void *buffer, 686 size_t size) 687 { 688 struct posix_acl *acl; 689 int err; 690 691 if (!(inode->i_sb->s_flags & SB_POSIXACL)) { 692 ntfs_inode_warn(inode, "add mount option \"acl\" to use acl"); 693 return -EOPNOTSUPP; 694 } 695 696 acl = ntfs_get_acl(inode, type, false); 697 if (IS_ERR(acl)) 698 return PTR_ERR(acl); 699 700 if (!acl) 701 return -ENODATA; 702 703 err = posix_acl_to_xattr(mnt_userns, acl, buffer, size); 704 posix_acl_release(acl); 705 706 return err; 707 } 708 > 709 static int ntfs_xattr_set_acl(struct user_namespace *mnt_userns, 710 struct inode *inode, int type, const void *value, 711 size_t size) 712 { 713 struct posix_acl *acl; 714 int err; 715 716 if (!(inode->i_sb->s_flags & SB_POSIXACL)) { 717 ntfs_inode_warn(inode, "add mount option \"acl\" to use acl"); 718 return -EOPNOTSUPP; 719 } 720 721 if (!inode_owner_or_capable(mnt_userns, inode)) 722 return -EPERM; 723 724 if (!value) { 725 acl = NULL; 726 } else { 727 acl = posix_acl_from_xattr(mnt_userns, value, size); 728 if (IS_ERR(acl)) 729 return PTR_ERR(acl); 730 731 if (acl) { 732 err = posix_acl_valid(mnt_userns, acl); 733 if (err) 734 goto release_and_out; 735 } 736 } 737 738 err = ntfs_set_acl(mnt_userns, inode, acl, type); 739 740 release_and_out: 741 posix_acl_release(acl); 742 return err; 743 } 744
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |