From: kernel test robot <lkp@intel.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: kbuild-all@lists.01.org,
"Darrick J. Wong" <darrick.wong@oracle.com>,
linux-kernel@vger.kernel.org
Subject: [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'
Date: Thu, 7 Oct 2021 19:34:47 +0800 [thread overview]
Message-ID: <202110071945.TtNIuOtB-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-10-07 11:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110071945.TtNIuOtB-lkp@intel.com \
--to=lkp@intel.com \
--cc=darrick.wong@oracle.com \
--cc=djwong@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®