All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [djwong-xfs:vectorized-scrub 242/346] fs/xfs/xfs_trace.c:52 xfs_btree_crack_agno_opdev() warn: bitwise AND condition is false here
Date: Sat, 19 Mar 2022 01:46:05 +0800	[thread overview]
Message-ID: <202203190133.RsXMt3pF-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: "Darrick J. Wong" <darrick.wong@oracle.com>
CC: linux-kernel(a)vger.kernel.org
TO: "Darrick J. Wong" <djwong@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head:   37f1eaa855b8115b247530a5e8081189a09db2de
commit: c42b1a06786a60b83b0a4eff298255977355329b [242/346] xfs: widen xfs_rmap_irec fields to handle realtime rmapbt
:::::: branch date: 20 hours ago
:::::: commit date: 20 hours ago
config: openrisc-randconfig-m031-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190133.RsXMt3pF-lkp(a)intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.2.0

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

smatch warnings:
fs/xfs/xfs_trace.c:52 xfs_btree_crack_agno_opdev() warn: bitwise AND condition is false here

vim +52 fs/xfs/xfs_trace.c

0b1b213fcf3a84 fs/xfs/linux-2.6/xfs_trace.c Christoph Hellwig 2009-12-14  45  
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  46  static inline void
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  47  xfs_btree_crack_agno_opdev(
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  48  	struct xfs_btree_cur	*cur,
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  49  	xfs_agnumber_t		*agno,
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  50  	dev_t			*opdev)
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  51  {
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06 @52  	if (cur->bc_flags & XFS_BTREE_IN_MEMORY) {
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  53  		*agno = 0;
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  54  		*opdev = xfbtree_target(cur->bc_mem.xfbtree)->bt_dev;
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  55  	} else if (cur->bc_flags & XFS_BTREE_ROOT_IN_INODE) {
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  56  		*agno = 0;
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  57  		*opdev = cur->bc_mp->m_rtdev_targp->bt_dev;
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  58  	} else {
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  59  		*agno = cur->bc_ag.pag->pag_agno;
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  60  		*opdev = cur->bc_mp->m_super->s_dev;
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  61  	}
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  62  }
c42b1a06786a60 fs/xfs/xfs_trace.c           Darrick J. Wong   2022-01-06  63  

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

                 reply	other threads:[~2022-03-18 17:46 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=202203190133.RsXMt3pF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.