linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [djwong-xfs:zero-initialize-pmem-5.16 18/28] fs/xfs/libxfs/xfs_ialloc_btree.c:552:46: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
@ 2021-10-07 11:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-07 11:04 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: llvm, kbuild-all, Darrick J. Wong, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2357 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git zero-initialize-pmem-5.16
head:   34b80c3d1203abd5fd64242ef25898c7d64166ca
commit: c0ef00d1e835bfd24399aaa069b2b608dd60b485 [18/28] xfs: check absolute maximum nlevels for each btree type
config: hexagon-randconfig-r041-20211007 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 58b68e70ebf6308f982426a2618782f473218eed)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/commit/?id=c0ef00d1e835bfd24399aaa069b2b608dd60b485
        git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
        git fetch --no-tags djwong-xfs zero-initialize-pmem-5.16
        git checkout c0ef00d1e835bfd24399aaa069b2b608dd60b485
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> fs/xfs/libxfs/xfs_ialloc_btree.c:552:46: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
           return xfs_btree_compute_maxlevels(minrecs, XFS_MAX_AG_INODES);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~          ^~~~~~~~~~~~~~~~~
   fs/xfs/libxfs/xfs_fs.h:273:45: note: expanded from macro 'XFS_MAX_AG_INODES'
   #define XFS_MAX_AG_INODES       (XFS_MAX_AG_BYTES / XFS_DINODE_MIN_SIZE)
                                    ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +552 fs/xfs/libxfs/xfs_ialloc_btree.c

   543	
   544	unsigned int
   545	xfs_inobt_absolute_maxlevels(void)
   546	{
   547		unsigned int		minrecs[2];
   548	
   549		xfs_btree_absolute_minrecs(minrecs, 0, sizeof(xfs_inobt_rec_t),
   550				sizeof(xfs_inobt_key_t) + sizeof(xfs_inobt_ptr_t));
   551	
 > 552		return xfs_btree_compute_maxlevels(minrecs, XFS_MAX_AG_INODES);
   553	}
   554	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24427 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-07 11:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 11:04 [djwong-xfs:zero-initialize-pmem-5.16 18/28] fs/xfs/libxfs/xfs_ialloc_btree.c:552:46: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).