linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [djwong-xfs:vectorized-scrub 243/358] fs/xfs/libxfs/xfs_alloc.c:2581:30: error: use of undeclared identifier 'mp'
@ 2021-08-26  9:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-26  9:32 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: llvm, kbuild-all, Darrick J. Wong, linux-kernel

[-- 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 --]

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

only message in thread, other threads:[~2021-08-26  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26  9:32 [djwong-xfs:vectorized-scrub 243/358] fs/xfs/libxfs/xfs_alloc.c:2581:30: error: use of undeclared identifier 'mp' 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).