* [jlayton:ceph-fscrypt-fnames 32/32] fs/ceph/ioctl.c:280 vet_mds_for_fscrypt() warn: ignoring unreachable code.
@ 2021-03-03 23:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-03 23:21 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2658 bytes --]
CC: kbuild-all(a)lists.01.org
TO: Jeff Layton <jlayton@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscrypt-fnames
head: 39a539be8701e8570c48af2611043617a91d012d
commit: 39a539be8701e8570c48af2611043617a91d012d [32/32] HACK: allow fscrypt on non-supported MDS's
:::::: branch date: 2 hours ago
:::::: commit date: 2 hours ago
config: x86_64-randconfig-m001-20210304 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
fs/ceph/ioctl.c:280 vet_mds_for_fscrypt() warn: ignoring unreachable code.
vim +280 fs/ceph/ioctl.c
4918b6d140c482 Sage Weil 2011-07-26 271
47f988b715ebb8 Jeff Layton 2020-07-28 272 static int vet_mds_for_fscrypt(struct file *file)
47f988b715ebb8 Jeff Layton 2020-07-28 273 {
47f988b715ebb8 Jeff Layton 2020-07-28 274 int i, ret = -EOPNOTSUPP;
47f988b715ebb8 Jeff Layton 2020-07-28 275 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(file_inode(file)->i_sb);
47f988b715ebb8 Jeff Layton 2020-07-28 276
39a539be8701e8 Jeff Layton 2021-03-01 277 /* HACK! Don't require MDS support for testing */
39a539be8701e8 Jeff Layton 2021-03-01 278 return 0;
39a539be8701e8 Jeff Layton 2021-03-01 279
47f988b715ebb8 Jeff Layton 2020-07-28 @280 mutex_lock(&mdsc->mutex);
47f988b715ebb8 Jeff Layton 2020-07-28 281 for (i = 0; i < mdsc->max_sessions; i++) {
47f988b715ebb8 Jeff Layton 2020-07-28 282 struct ceph_mds_session *s = mdsc->sessions[i];
47f988b715ebb8 Jeff Layton 2020-07-28 283
47f988b715ebb8 Jeff Layton 2020-07-28 284 if (!s)
47f988b715ebb8 Jeff Layton 2020-07-28 285 continue;
47f988b715ebb8 Jeff Layton 2020-07-28 286 if (test_bit(CEPHFS_FEATURE_ALTERNATE_NAME, &s->s_features))
47f988b715ebb8 Jeff Layton 2020-07-28 287 ret = 0;
47f988b715ebb8 Jeff Layton 2020-07-28 288 break;
47f988b715ebb8 Jeff Layton 2020-07-28 289 }
47f988b715ebb8 Jeff Layton 2020-07-28 290 mutex_unlock(&mdsc->mutex);
47f988b715ebb8 Jeff Layton 2020-07-28 291 return ret;
47f988b715ebb8 Jeff Layton 2020-07-28 292 }
47f988b715ebb8 Jeff Layton 2020-07-28 293
:::::: The code at line 280 was first introduced by commit
:::::: 47f988b715ebb8f99cc2df3494db6cc3548deaa8 ceph: add fscrypt ioctls
:::::: TO: Jeff Layton <jlayton@kernel.org>
:::::: CC: Jeff Layton <jlayton@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33705 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-03 23:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 23:21 [jlayton:ceph-fscrypt-fnames 32/32] fs/ceph/ioctl.c:280 vet_mds_for_fscrypt() warn: ignoring unreachable code 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.