From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:virtio-mem-pg-offline 3/5] mm/mm_init.c:1931:41: error: too few arguments to function call, expected 3, have 2
Date: Sat, 8 Jun 2024 02:22:48 +0800 [thread overview]
Message-ID: <202406080225.uUQhY6iZ-lkp@intel.com> (raw)
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
reply other threads:[~2024-06-07 18:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202406080225.uUQhY6iZ-lkp@intel.com \
--to=lkp@intel.com \
--cc=david@redhat.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;
as well as URLs for NNTP newsgroup(s).