tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git scrub-fixes
head: 1acf4b5f989a50368c7400ebc9bcb8e694811472
commit: 7a79408119261e2bd09ad619b42678809f58f67e [272/304] xfs: prepare rmap functions to
deal with rtrmapbt
compiler: h8300-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
In file included from fs/xfs/libxfs/xfs_rmap.c:
fs/xfs/libxfs/xfs_format.h:342:2: warning: Non-boolean value returned from function
returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_ATTRBIT);
^
fs/xfs/libxfs/xfs_format.h:352:2: warning: Non-boolean value returned from function
returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_QUOTABIT);
^
fs/xfs/libxfs/xfs_format.h:368:2: warning: Non-boolean value returned from function
returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_DALIGNBIT);
^
fs/xfs/libxfs/xfs_format.h:379:2: warning: Non-boolean value returned from function
returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_SECTORBIT);
^
fs/xfs/libxfs/xfs_format.h:384:2: warning: Non-boolean value returned from function
returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_BORGBIT);
^
> fs/xfs/libxfs/xfs_rmap.c:41:23: warning: Same value in both
branches of ternary operator. [duplicateValueTernary]
XFS_RTRMAP_LEN_MAX :
XFS_RMAP_LEN_MAX;
^
vim +41 fs/xfs/libxfs/xfs_rmap.c
34
35 /* Return the maximum length of an rmap record. */
36 static xfs_filblks_t
37 xfs_rmap_len_max(
38 struct xfs_btree_cur *cur)
39 {
40 return (cur->bc_flags & XFS_BTREE_LONG_PTRS) ?
41 XFS_RTRMAP_LEN_MAX : XFS_RMAP_LEN_MAX;
42 }
43
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org