All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2 8/8] mm: hugetlb: allocate frozen pages in alloc_gigantic_folio()
Date: Fri, 19 Sep 2025 10:03:19 +0800	[thread overview]
Message-ID: <202509191000.RoubFuJ8-lkp@intel.com> (raw)
In-Reply-To: <20250918132000.1951232-9-wangkefeng.wang@huawei.com>

Hi Kefeng,

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/Kefeng-Wang/mm-page_alloc-optimize-pfn_range_valid_contig/20250918-212431
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20250918132000.1951232-9-wangkefeng.wang%40huawei.com
patch subject: [PATCH v2 8/8] mm: hugetlb: allocate frozen pages in alloc_gigantic_folio()
config: riscv-randconfig-001-20250919 (https://download.01.org/0day-ci/archive/20250919/202509191000.RoubFuJ8-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250919/202509191000.RoubFuJ8-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/202509191000.RoubFuJ8-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   mm/hugetlb.c: In function 'alloc_gigantic_folio':
>> mm/hugetlb.c:1497:26: error: implicit declaration of function 'alloc_contig_frozen_pages'; did you mean 'alloc_frozen_pages'? [-Werror=implicit-function-declaration]
    1497 |  folio = (struct folio *)alloc_contig_frozen_pages(1 << order, gfp_mask,
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                          alloc_frozen_pages
>> mm/hugetlb.c:1497:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    1497 |  folio = (struct folio *)alloc_contig_frozen_pages(1 << order, gfp_mask,
         |          ^
   cc1: some warnings being treated as errors


vim +1497 mm/hugetlb.c

  1471	
  1472	#define for_each_node_mask_to_alloc(next_node, nr_nodes, node, mask)		\
  1473		for (nr_nodes = nodes_weight(*mask);				\
  1474			nr_nodes > 0 &&						\
  1475			((node = hstate_next_node_to_alloc(next_node, mask)) || 1);	\
  1476			nr_nodes--)
  1477	
  1478	#define for_each_node_mask_to_free(hs, nr_nodes, node, mask)		\
  1479		for (nr_nodes = nodes_weight(*mask);				\
  1480			nr_nodes > 0 &&						\
  1481			((node = hstate_next_node_to_free(hs, mask)) || 1);	\
  1482			nr_nodes--)
  1483	
  1484	#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE
  1485	static struct folio *alloc_gigantic_folio(int order, gfp_t gfp_mask,
  1486			int nid, nodemask_t *nodemask)
  1487	{
  1488		struct folio *folio;
  1489	
  1490		folio = hugetlb_cma_alloc_frozen_folio(order, gfp_mask, nid, nodemask);
  1491		if (folio)
  1492			return folio;
  1493	
  1494		if (hugetlb_cma_exclusive_alloc())
  1495			return NULL;
  1496	
> 1497		folio = (struct folio *)alloc_contig_frozen_pages(1 << order, gfp_mask,
  1498								  nid, nodemask);
  1499		return folio;
  1500	}
  1501	#else /* !CONFIG_ARCH_HAS_GIGANTIC_PAGE */
  1502	static struct folio *alloc_gigantic_folio(int order, gfp_t gfp_mask, int nid,
  1503						  nodemask_t *nodemask)
  1504	{
  1505		return NULL;
  1506	}
  1507	#endif
  1508	

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

  reply	other threads:[~2025-09-19  2:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-18 13:19 [PATCH v2 0/8] mm: hugetlb: allocate frozen gigantic folio Kefeng Wang
2025-09-18 13:19 ` [PATCH v2 1/8] mm: page_alloc: optimize pfn_range_valid_contig() Kefeng Wang
2025-09-18 15:49   ` Zi Yan
2025-09-19  2:03     ` Kefeng Wang
2025-09-19  1:40   ` kernel test robot
2025-09-19  5:00   ` Dev Jain
2025-09-20  8:19     ` Kefeng Wang
2025-09-30  9:56   ` David Hildenbrand
2025-10-09 12:40     ` Kefeng Wang
2025-09-18 13:19 ` [PATCH v2 2/8] mm: hugetlb: optimize replace_free_hugepage_folios() Kefeng Wang
2025-09-30  9:57   ` David Hildenbrand
2025-10-09 12:40     ` Kefeng Wang
2025-09-18 13:19 ` [PATCH v2 3/8] mm: debug_vm_pgtable: add debug_vm_pgtable_free_huge_page() Kefeng Wang
2025-09-30 10:01   ` David Hildenbrand
2025-09-18 13:19 ` [PATCH v2 4/8] mm: page_alloc: add split_non_compound_page() Kefeng Wang
2025-09-30 10:06   ` David Hildenbrand
2025-10-09 12:40     ` Kefeng Wang
2025-09-18 13:19 ` [PATCH v2 5/8] mm: page_alloc: add alloc_contig_{range_frozen,frozen_pages}() Kefeng Wang
2025-09-18 13:19 ` [PATCH v2 6/8] mm: cma: add __cma_release() Kefeng Wang
2025-09-30 10:15   ` David Hildenbrand
2025-10-09 12:40     ` Kefeng Wang
2025-09-18 13:19 ` [PATCH v2 7/8] mm: cma: add cma_alloc_frozen{_compound}() Kefeng Wang
2025-09-18 13:20 ` [PATCH v2 8/8] mm: hugetlb: allocate frozen pages in alloc_gigantic_folio() Kefeng Wang
2025-09-19  2:03   ` kernel test robot [this message]
2025-09-19  3:22   ` kernel test robot

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=202509191000.RoubFuJ8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=wangkefeng.wang@huawei.com \
    /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.