:::::: :::::: Manual check reason: "low confidence static check warning: fs/cifs/cifsacl.c:1703:9: sparse: sparse: switch with no cases" ::::::
BCC: [email protected] CC: [email protected] CC: [email protected] TO: Christian Brauner <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git fs.posix_acl.vfsuid head: d37e11d9b40fc35810217121aa3205b7975fd4c6 commit: fa37058424f3ca8becc99200b11a3690537f134e [12/37] cifs: add ->get_dentry_acl() method :::::: branch date: 27 hours ago :::::: commit date: 27 hours ago config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220910/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git/commit/?id=fa37058424f3ca8becc99200b11a3690537f134e git remote add vfs-idmapping https://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping.git git fetch --no-tags vfs-idmapping fs.posix_acl.vfsuid git checkout fa37058424f3ca8becc99200b11a3690537f134e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/cifs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) >> fs/cifs/cifsacl.c:1703:9: sparse: sparse: switch with no cases vim +1703 fs/cifs/cifsacl.c fa37058424f3ca Christian Brauner 2022-09-06 1674 fa37058424f3ca Christian Brauner 2022-09-06 1675 struct posix_acl *cifs_get_dentry_acl(struct user_namespace *mnt_userns, fa37058424f3ca Christian Brauner 2022-09-06 1676 struct dentry *dentry, int type) fa37058424f3ca Christian Brauner 2022-09-06 1677 { fa37058424f3ca Christian Brauner 2022-09-06 1678 struct posix_acl *acl = NULL; fa37058424f3ca Christian Brauner 2022-09-06 1679 ssize_t rc = -EOPNOTSUPP; fa37058424f3ca Christian Brauner 2022-09-06 1680 unsigned int xid; fa37058424f3ca Christian Brauner 2022-09-06 1681 struct super_block *sb = dentry->d_sb; fa37058424f3ca Christian Brauner 2022-09-06 1682 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); fa37058424f3ca Christian Brauner 2022-09-06 1683 struct tcon_link *tlink; fa37058424f3ca Christian Brauner 2022-09-06 1684 struct cifs_tcon *pTcon; fa37058424f3ca Christian Brauner 2022-09-06 1685 const char *full_path; fa37058424f3ca Christian Brauner 2022-09-06 1686 void *page; fa37058424f3ca Christian Brauner 2022-09-06 1687 fa37058424f3ca Christian Brauner 2022-09-06 1688 tlink = cifs_sb_tlink(cifs_sb); fa37058424f3ca Christian Brauner 2022-09-06 1689 if (IS_ERR(tlink)) fa37058424f3ca Christian Brauner 2022-09-06 1690 return ERR_CAST(tlink); fa37058424f3ca Christian Brauner 2022-09-06 1691 pTcon = tlink_tcon(tlink); fa37058424f3ca Christian Brauner 2022-09-06 1692 fa37058424f3ca Christian Brauner 2022-09-06 1693 xid = get_xid(); fa37058424f3ca Christian Brauner 2022-09-06 1694 page = alloc_dentry_path(); fa37058424f3ca Christian Brauner 2022-09-06 1695 fa37058424f3ca Christian Brauner 2022-09-06 1696 full_path = build_path_from_dentry(dentry, page); fa37058424f3ca Christian Brauner 2022-09-06 1697 if (IS_ERR(full_path)) { fa37058424f3ca Christian Brauner 2022-09-06 1698 acl = ERR_CAST(full_path); fa37058424f3ca Christian Brauner 2022-09-06 1699 goto out; fa37058424f3ca Christian Brauner 2022-09-06 1700 } fa37058424f3ca Christian Brauner 2022-09-06 1701 fa37058424f3ca Christian Brauner 2022-09-06 1702 /* return alt name if available as pseudo attr */ fa37058424f3ca Christian Brauner 2022-09-06 @1703 switch (type) { -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
