From: kernel test robot <lkp@intel.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
"Darrick J. Wong" <darrick.wong@oracle.com>,
linux-kernel@vger.kernel.org
Subject: [djwong-xfs:vectorized-scrub 243/358] fs/xfs/libxfs/xfs_alloc.c:2581:30: error: use of undeclared identifier 'mp'
Date: Thu, 26 Aug 2021 17:32:22 +0800 [thread overview]
Message-ID: <202108261714.QwGtNJiW-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3264 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git vectorized-scrub
head: f7b5acb4dc5e8a3845296b4662732360360b776e
commit: d76394b9f294ec6802b5d9da847041e6d5cce142 [243/358] xfs: clean up extent free log intent item tracepoint callsites
config: hexagon-randconfig-r041-20210826 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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=d76394b9f294ec6802b5d9da847041e6d5cce142
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs vectorized-scrub
git checkout d76394b9f294ec6802b5d9da847041e6d5cce142
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash fs/xfs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> fs/xfs/libxfs/xfs_alloc.c:2581:30: error: use of undeclared identifier 'mp'
trace_xfs_extent_free_defer(mp, XFS_FREE_EXTENT_REGULAR, new);
^
1 error generated.
vim +/mp +2581 fs/xfs/libxfs/xfs_alloc.c
2539
2540 /*
2541 * Add the extent to the list of extents to be free at transaction end.
2542 * The list is maintained sorted (by block number).
2543 */
2544 void
2545 xfs_free_extent_later(
2546 struct xfs_trans *tp,
2547 xfs_fsblock_t bno,
2548 xfs_filblks_t len,
2549 const struct xfs_owner_info *oinfo,
2550 bool skip_discard)
2551 {
2552 struct xfs_extent_free_item *new; /* new element */
2553 #ifdef DEBUG
2554 struct xfs_mount *mp = tp->t_mountp;
2555 xfs_agnumber_t agno;
2556 xfs_agblock_t agbno;
2557
2558 ASSERT(bno != NULLFSBLOCK);
2559 ASSERT(len > 0);
2560 ASSERT(len <= MAXEXTLEN);
2561 ASSERT(!isnullstartblock(bno));
2562 agno = XFS_FSB_TO_AGNO(mp, bno);
2563 agbno = XFS_FSB_TO_AGBNO(mp, bno);
2564 ASSERT(agno < mp->m_sb.sb_agcount);
2565 ASSERT(agbno < mp->m_sb.sb_agblocks);
2566 ASSERT(len < mp->m_sb.sb_agblocks);
2567 ASSERT(agbno + len <= mp->m_sb.sb_agblocks);
2568 #endif
2569 ASSERT(xfs_extent_free_item_zone != NULL);
2570
2571 new = kmem_cache_alloc(xfs_extent_free_item_zone,
2572 GFP_KERNEL | __GFP_NOFAIL);
2573 new->xefi_startblock = bno;
2574 new->xefi_blockcount = (xfs_extlen_t)len;
2575 if (oinfo)
2576 new->xefi_oinfo = *oinfo;
2577 else
2578 new->xefi_oinfo = XFS_RMAP_OINFO_SKIP_UPDATE;
2579 new->xefi_skip_discard = skip_discard;
2580
> 2581 trace_xfs_extent_free_defer(mp, XFS_FREE_EXTENT_REGULAR, new);
2582 xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_FREE, &new->xefi_list);
2583 }
2584
---
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: 31071 bytes --]
reply other threads:[~2021-08-26 9:33 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=202108261714.QwGtNJiW-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 \
--cc=llvm@lists.linux.dev \
/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®