All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 5/6] xfs: call xfs_bmap_exact_minlen_extent_alloc from xfs_bmap_btalloc
Date: Mon, 26 Aug 2024 23:23:31 +0800	[thread overview]
Message-ID: <202408262312.ekF7lryy-lkp@intel.com> (raw)
In-Reply-To: <20240824034100.1163020-6-hch@lst.de>

Hi Christoph,

kernel test robot noticed the following build errors:

[auto build test ERROR on xfs-linux/for-next]
[also build test ERROR on linus/master v6.11-rc5 next-20240826]
[cannot apply to djwong-xfs/djwong-devel]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Christoph-Hellwig/xfs-return-bool-from-xfs_attr3_leaf_add/20240826-140936
base:   https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git for-next
patch link:    https://lore.kernel.org/r/20240824034100.1163020-6-hch%40lst.de
patch subject: [PATCH 5/6] xfs: call xfs_bmap_exact_minlen_extent_alloc from xfs_bmap_btalloc
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240826/202408262312.ekF7lryy-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240826/202408262312.ekF7lryy-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408262312.ekF7lryy-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/xfs/libxfs/xfs_bmap.c:3762:50: error: too many arguments provided to function-like macro invocation
    3762 |                 error = xfs_bmap_exact_minlen_extent_alloc(ap, &args);
         |                                                                ^
   fs/xfs/libxfs/xfs_bmap.c:3500:9: note: macro 'xfs_bmap_exact_minlen_extent_alloc' defined here
    3500 | #define xfs_bmap_exact_minlen_extent_alloc(bma) (-EFSCORRUPTED)
         |         ^
>> fs/xfs/libxfs/xfs_bmap.c:3762:11: error: use of undeclared identifier 'xfs_bmap_exact_minlen_extent_alloc'
    3762 |                 error = xfs_bmap_exact_minlen_extent_alloc(ap, &args);
         |                         ^
   2 errors generated.


vim +3762 fs/xfs/libxfs/xfs_bmap.c

  3728	
  3729	static int
  3730	xfs_bmap_btalloc(
  3731		struct xfs_bmalloca	*ap)
  3732	{
  3733		struct xfs_mount	*mp = ap->ip->i_mount;
  3734		struct xfs_alloc_arg	args = {
  3735			.tp		= ap->tp,
  3736			.mp		= mp,
  3737			.fsbno		= NULLFSBLOCK,
  3738			.oinfo		= XFS_RMAP_OINFO_SKIP_UPDATE,
  3739			.minleft	= ap->minleft,
  3740			.wasdel		= ap->wasdel,
  3741			.resv		= XFS_AG_RESV_NONE,
  3742			.datatype	= ap->datatype,
  3743			.alignment	= 1,
  3744			.minalignslop	= 0,
  3745		};
  3746		xfs_fileoff_t		orig_offset;
  3747		xfs_extlen_t		orig_length;
  3748		int			error;
  3749		int			stripe_align;
  3750	
  3751		ASSERT(ap->length);
  3752		orig_offset = ap->offset;
  3753		orig_length = ap->length;
  3754	
  3755		stripe_align = xfs_bmap_compute_alignments(ap, &args);
  3756	
  3757		/* Trim the allocation back to the maximum an AG can fit. */
  3758		args.maxlen = min(ap->length, mp->m_ag_max_usable);
  3759	
  3760		if (unlikely(XFS_TEST_ERROR(false, mp,
  3761				XFS_ERRTAG_BMAP_ALLOC_MINLEN_EXTENT)))
> 3762			error = xfs_bmap_exact_minlen_extent_alloc(ap, &args);
  3763		else if ((ap->datatype & XFS_ALLOC_USERDATA) &&
  3764				xfs_inode_is_filestream(ap->ip))
  3765			error = xfs_bmap_btalloc_filestreams(ap, &args, stripe_align);
  3766		else
  3767			error = xfs_bmap_btalloc_best_length(ap, &args, stripe_align);
  3768		if (error)
  3769			return error;
  3770	
  3771		if (args.fsbno != NULLFSBLOCK) {
  3772			xfs_bmap_process_allocated_extent(ap, &args, orig_offset,
  3773				orig_length);
  3774		} else {
  3775			ap->blkno = NULLFSBLOCK;
  3776			ap->length = 0;
  3777		}
  3778		return 0;
  3779	}
  3780	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2024-08-26 15:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-24  3:40 fix a DEBUG-only assert failure in xfs/538 v2 Christoph Hellwig
2024-08-24  3:40 ` [PATCH 1/6] xfs: merge xfs_attr_leaf_try_add into xfs_attr_leaf_addname Christoph Hellwig
2024-09-02  6:38   ` Chandan Babu R
2024-09-03  4:26     ` Christoph Hellwig
2024-08-24  3:40 ` [PATCH 2/6] xfs: return bool from xfs_attr3_leaf_add Christoph Hellwig
2024-08-24  3:40 ` [PATCH 3/6] xfs: distinguish extra split from real ENOSPC from xfs_attr3_leaf_split Christoph Hellwig
2024-08-24  3:40 ` [PATCH 4/6] xfs: fold xfs_bmap_alloc_userdata into xfs_bmapi_allocate Christoph Hellwig
2024-08-24  3:40 ` [PATCH 5/6] xfs: call xfs_bmap_exact_minlen_extent_alloc from xfs_bmap_btalloc Christoph Hellwig
2024-08-26 12:17   ` kernel test robot
2024-08-26 15:23   ` kernel test robot [this message]
2024-08-24  3:40 ` [PATCH 6/6] xfs: support lowmode allocations in xfs_bmap_exact_minlen_extent_alloc Christoph Hellwig
2024-08-27  8:39   ` Chandan Babu R
2024-08-27 22:03 ` fix a DEBUG-only assert failure in xfs/538 v2 Dave Chinner
  -- strict thread matches above, loose matches on Subject: below --
2024-08-20 17:04 fix a DEBUG-only assert failure in xfs/538 Christoph Hellwig
2024-08-20 17:04 ` [PATCH 5/6] xfs: call xfs_bmap_exact_minlen_extent_alloc from xfs_bmap_btalloc Christoph Hellwig
2024-08-21  8:24   ` Christoph Hellwig
2024-08-21 16:04   ` Darrick J. Wong

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=202408262312.ekF7lryy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@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 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.