tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
realtime-rmap
head: a7d390d21ec1168a3049b4db7bd0dfff68b01435
commit: c21e3d6a726c6ce2a90dbd6c64871375566ed4db [183/203] xfs: prepare rmap functions to
deal with rtrmapbt
compiler: arceb-elf-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_rmap.c:41:23: warning: Same value in both
branches of ternary operator. [duplicateValueTernary]
XFS_RTRMAP_LEN_MAX :
XFS_RMAP_LEN_MAX;
^
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
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);
^
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_btnum == XFS_BTNUM_RTRMAP ?
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