From: kernel test robot <lkp@intel.com>
To: Xiang Gao <gxxa03070307@gmail.com>,
akpm@linux-foundation.org, david@redhat.com
Cc: oe-kbuild-all@lists.linux.dev, lorenzo.stoakes@oracle.com,
Liam.Howlett@oracle.com, vbabka@suse.cz, rppt@kernel.org,
surenb@google.com, mhocko@suse.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, gaoxiang17 <gaoxiang17@xiaomi.com>
Subject: Re: [PATCH] mm/cma: print total and used pages in cma_alloc()
Date: Sun, 17 Aug 2025 00:30:16 +0800 [thread overview]
Message-ID: <202508170014.PK57XSd7-lkp@intel.com> (raw)
In-Reply-To: <20250816042842.3959315-1-gxxa03070307@gmail.com>
Hi Xiang,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Xiang-Gao/mm-cma-print-total-and-used-pages-in-cma_alloc/20250816-122940
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250816042842.3959315-1-gxxa03070307%40gmail.com
patch subject: [PATCH] mm/cma: print total and used pages in cma_alloc()
config: arm-randconfig-002-20250816 (https://download.01.org/0day-ci/archive/20250817/202508170014.PK57XSd7-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250817/202508170014.PK57XSd7-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/202508170014.PK57XSd7-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/cma.c: In function 'cma_get_used_pages':
>> mm/cma.c:784:26: error: 'struct cma' has no member named 'bitmap'
784 | used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma));
| ^~
>> mm/cma.c:784:41: error: too few arguments to function 'cma_bitmap_maxno'
784 | used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma));
| ^~~~~~~~~~~~~~~~
In file included from mm/cma.c:34:
mm/cma.h:77:29: note: declared here
77 | static inline unsigned long cma_bitmap_maxno(struct cma *cma,
| ^~~~~~~~~~~~~~~~
vim +784 mm/cma.c
778
779 static unsigned long cma_get_used_pages(struct cma *cma)
780 {
781 unsigned long used;
782
783 spin_lock_irq(&cma->lock);
> 784 used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma));
785 spin_unlock_irq(&cma->lock);
786
787 return used << cma->order_per_bit;
788 }
789
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-08-16 16:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-16 4:28 Xiang Gao
2025-08-16 6:27 ` David Hildenbrand
2025-08-16 6:42 ` Giorgi Tchankvetadze
2025-08-16 6:57 ` David Hildenbrand
2025-08-16 6:45 ` Andrew Morton
2025-08-16 6:56 ` David Hildenbrand
2025-08-16 7:34 ` Andrew Morton
2025-08-16 7:49 ` David Hildenbrand
2025-08-18 5:30 ` 答复: [External Mail]Re: " 高翔
2025-08-16 16:30 ` kernel test robot [this message]
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=202508170014.PK57XSd7-lkp@intel.com \
--to=lkp@intel.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=gaoxiang17@xiaomi.com \
--cc=gxxa03070307@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=mhocko@suse.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
/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