* [djwong-xfs:zero-initialize-pmem-5.16 18/28] fs/xfs/libxfs/xfs_fs.h:273:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '4294967296' to '0'
@ 2021-10-07 11:34 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-07 11:34 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: kbuild-all, Darrick J. Wong, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2650 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: sh-buildonly-randconfig-r003-20211007 (attached as .config)
compiler: sh4-linux-gcc (GCC) 11.2.0
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=gcc-11.2.0 make.cross ARCH=sh
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 >>):
In file included from fs/xfs/xfs_linux.h:72,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ialloc_btree.c:6:
fs/xfs/libxfs/xfs_ialloc_btree.c: In function 'xfs_inobt_absolute_maxlevels':
>> fs/xfs/libxfs/xfs_fs.h:273:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '4294967296' to '0' [-Woverflow]
273 | #define XFS_MAX_AG_INODES (XFS_MAX_AG_BYTES / XFS_DINODE_MIN_SIZE)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/libxfs/xfs_ialloc_btree.c:552:53: note: in expansion of macro 'XFS_MAX_AG_INODES'
552 | return xfs_btree_compute_maxlevels(minrecs, XFS_MAX_AG_INODES);
| ^~~~~~~~~~~~~~~~~
vim +273 fs/xfs/libxfs/xfs_fs.h
264
265 /*
266 * Limits on sb_agblocks/sb_agblklog -- mkfs won't format AGs smaller than
267 * 16MB or larger than 1TB.
268 */
269 #define XFS_MIN_AG_BYTES (1ULL << 24) /* 16 MB */
270 #define XFS_MAX_AG_BYTES (1ULL << 40) /* 1 TB */
271 #define XFS_MAX_AG_BLOCKS (XFS_MAX_AG_BYTES / XFS_MIN_BLOCKSIZE)
272 #define XFS_MAX_CRC_AG_BLOCKS (XFS_MAX_AG_BYTES / XFS_MIN_CRC_BLOCKSIZE)
> 273 #define XFS_MAX_AG_INODES (XFS_MAX_AG_BYTES / XFS_DINODE_MIN_SIZE)
274
---
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: 31673 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-07 11:35 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:34 [djwong-xfs:zero-initialize-pmem-5.16 18/28] fs/xfs/libxfs/xfs_fs.h:273:33: warning: conversion from 'long long unsigned int' to 'long unsigned int' 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
all inboxes | Powered by JetHome®