public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Sasha Levin <sashal@kernel.org>,
	Kari Argillander <kari.argillander@gmail.com>
Subject: [linux-stable-rc:queue/5.15 1/112] fs/ntfs3/xattr.c:684:12: error: redefinition of 'ntfs_xattr_get_acl'
Date: Thu, 9 Jun 2022 23:39:31 +0800	[thread overview]
Message-ID: <202206092357.sMCUOMZm-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-06-09 15:39 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=202206092357.sMCUOMZm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=almaz.alexandrovich@paragon-software.com \
    --cc=kari.argillander@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=sashal@kernel.org \
    /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