llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [davidhildenbrand:virtio-mem-pg-offline 3/5] mm/mm_init.c:1931:41: error: too few arguments to function call, expected 3, have 2
@ 2024-06-07 18:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-07 18:22 UTC (permalink / raw)
  To: David Hildenbrand; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/davidhildenbrand/linux virtio-mem-pg-offline
head:   f7b71869d1528420a6ea7ffc91c517468e2fff28
commit: fca42afb2bf8c447b2998db6fa994a438d2ae7b8 [3/5] mm: pass meminit_context to __free_pages_core()
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240608/202406080225.uUQhY6iZ-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/20240608/202406080225.uUQhY6iZ-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/202406080225.uUQhY6iZ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/mm_init.c:1931:41: error: too few arguments to function call, expected 3, have 2
    1931 |                 __free_pages_core(page, MAX_PAGE_ORDER);
         |                 ~~~~~~~~~~~~~~~~~                     ^
   mm/internal.h:607:13: note: '__free_pages_core' declared here
     607 | extern void __free_pages_core(struct page *page, unsigned int order,
         |             ^                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     608 |                 enum meminit_context);
         |                 ~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +1931 mm/mm_init.c

9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1914) 
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1915) #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1916) static void __init deferred_free_range(unsigned long pfn,
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1917) 				       unsigned long nr_pages)
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1918) {
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1919) 	struct page *page;
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1920) 	unsigned long i;
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1921) 
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1922) 	if (!nr_pages)
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1923) 		return;
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1924) 
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1925) 	page = pfn_to_page(pfn);
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1926) 
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1927) 	/* Free a large naturally-aligned chunk if possible */
3f6dac0fd1b831 Kirill A. Shutemov  2023-03-21  1928  	if (nr_pages == MAX_ORDER_NR_PAGES && IS_MAX_ORDER_ALIGNED(pfn)) {
3f6dac0fd1b831 Kirill A. Shutemov  2023-03-21  1929  		for (i = 0; i < nr_pages; i += pageblock_nr_pages)
3f6dac0fd1b831 Kirill A. Shutemov  2023-03-21  1930  			set_pageblock_migratetype(page + i, MIGRATE_MOVABLE);
5e0a760b44417f Kirill A. Shutemov  2023-12-28 @1931  		__free_pages_core(page, MAX_PAGE_ORDER);
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1932) 		return;
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1933) 	}
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1934) 
5e0a760b44417f Kirill A. Shutemov  2023-12-28  1935  	/* Accept chunks smaller than MAX_PAGE_ORDER upfront */
dcdfdd40fa82b6 Kirill A. Shutemov  2023-06-06  1936  	accept_memory(PFN_PHYS(pfn), PFN_PHYS(pfn + nr_pages));
dcdfdd40fa82b6 Kirill A. Shutemov  2023-06-06  1937  
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1938) 	for (i = 0; i < nr_pages; i++, page++, pfn++) {
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1939) 		if (pageblock_aligned(pfn))
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1940) 			set_pageblock_migratetype(page, MIGRATE_MOVABLE);
fca42afb2bf8c4 David Hildenbrand   2024-04-17  1941  		__free_pages_core(page, 0, MEMINIT_EARLY);
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1942) 	}
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1943) }
9420f89db2dd61 Mike Rapoport (IBM  2023-03-21  1944) 

:::::: The code at line 1931 was first introduced by commit
:::::: 5e0a760b44417f7cadd79de2204d6247109558a0 mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDER

:::::: TO: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

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

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

only message in thread, other threads:[~2024-06-07 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 18:22 [davidhildenbrand:virtio-mem-pg-offline 3/5] mm/mm_init.c:1931:41: error: too few arguments to function call, expected 3, have 2 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).