Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Frank van der Linden <fvdl@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH 04/12] mm/cma: keep a global sorted list of CMA ranges
Date: Wed, 17 Sep 2025 03:57:25 +0800	[thread overview]
Message-ID: <202509170355.O6CTWu7T-lkp@intel.com> (raw)
In-Reply-To: <20250915195153.462039-5-fvdl@google.com>

Hi Frank,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on powerpc/next]
[also build test ERROR on powerpc/fixes powerpc/topic/ppc-kvm s390/features linus/master v6.17-rc6 next-20250916]
[cannot apply to akpm-mm/mm-everything]
[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/Frank-van-der-Linden/mm-cma-add-tunable-for-CMA-fallback-limit/20250916-035514
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
patch link:    https://lore.kernel.org/r/20250915195153.462039-5-fvdl%40google.com
patch subject: [RFC PATCH 04/12] mm/cma: keep a global sorted list of CMA ranges
config: i386-buildonly-randconfig-006-20250917 (https://download.01.org/0day-ci/archive/20250917/202509170355.O6CTWu7T-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/202509170355.O6CTWu7T-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/202509170355.O6CTWu7T-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/cma_debug.c:58:40: error: too many arguments to function call, expected single argument 'cmr', have 2 arguments
      58 |                 bitmap_maxno = cma_bitmap_maxno(cma, cmr);
         |                                ~~~~~~~~~~~~~~~~      ^~~
   mm/cma.h:71:29: note: 'cma_bitmap_maxno' declared here
      71 | static inline unsigned long cma_bitmap_maxno(struct cma_memrange *cmr)
         |                             ^                ~~~~~~~~~~~~~~~~~~~~~~~~
   mm/cma_debug.c:187:39: error: too many arguments to function call, expected single argument 'cmr', have 2 arguments
     187 |                         DIV_ROUND_UP(cma_bitmap_maxno(cma, cmr),
         |                                      ~~~~~~~~~~~~~~~~      ^~~
   include/linux/math.h:49:22: note: expanded from macro 'DIV_ROUND_UP'
      49 | #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP
         |                      ^
   include/uapi/linux/const.h:51:40: note: expanded from macro '__KERNEL_DIV_ROUND_UP'
      51 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
         |                                        ^
   mm/cma.h:71:29: note: 'cma_bitmap_maxno' declared here
      71 | static inline unsigned long cma_bitmap_maxno(struct cma_memrange *cmr)
         |                             ^                ~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +/cmr +58 mm/cma_debug.c

2e32b947606daa Dmitry Safonov       2015-04-15  45  
2e32b947606daa Dmitry Safonov       2015-04-15  46  static int cma_maxchunk_get(void *data, u64 *val)
2e32b947606daa Dmitry Safonov       2015-04-15  47  {
2e32b947606daa Dmitry Safonov       2015-04-15  48  	struct cma *cma = data;
c009da4258f988 Frank van der Linden 2025-02-28  49  	struct cma_memrange *cmr;
2e32b947606daa Dmitry Safonov       2015-04-15  50  	unsigned long maxchunk = 0;
c009da4258f988 Frank van der Linden 2025-02-28  51  	unsigned long start, end;
c009da4258f988 Frank van der Linden 2025-02-28  52  	unsigned long bitmap_maxno;
c009da4258f988 Frank van der Linden 2025-02-28  53  	int r;
2e32b947606daa Dmitry Safonov       2015-04-15  54  
0ef7dcac998fef Mike Kravetz         2021-05-04  55  	spin_lock_irq(&cma->lock);
c009da4258f988 Frank van der Linden 2025-02-28  56  	for (r = 0; r < cma->nranges; r++) {
c009da4258f988 Frank van der Linden 2025-02-28  57  		cmr = &cma->ranges[r];
c009da4258f988 Frank van der Linden 2025-02-28 @58  		bitmap_maxno = cma_bitmap_maxno(cma, cmr);
c79147e4b02fa3 Yury Norov (NVIDIA   2025-07-19  59) 		for_each_clear_bitrange(start, end, cmr->bitmap, bitmap_maxno)
2e32b947606daa Dmitry Safonov       2015-04-15  60  			maxchunk = max(end - start, maxchunk);
2e32b947606daa Dmitry Safonov       2015-04-15  61  	}
0ef7dcac998fef Mike Kravetz         2021-05-04  62  	spin_unlock_irq(&cma->lock);
2e32b947606daa Dmitry Safonov       2015-04-15  63  	*val = (u64)maxchunk << cma->order_per_bit;
2e32b947606daa Dmitry Safonov       2015-04-15  64  
2e32b947606daa Dmitry Safonov       2015-04-15  65  	return 0;
2e32b947606daa Dmitry Safonov       2015-04-15  66  }
a9ea242a063c62 zhong jiang          2019-11-30  67  DEFINE_DEBUGFS_ATTRIBUTE(cma_maxchunk_fops, cma_maxchunk_get, NULL, "%llu\n");
2e32b947606daa Dmitry Safonov       2015-04-15  68  

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

           reply	other threads:[~2025-09-16 19:57 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250915195153.462039-5-fvdl@google.com>]

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=202509170355.O6CTWu7T-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=fvdl@google.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox