Hi Xin,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[also build test ERROR on v5.17-rc4 next-20220216]
[cannot apply to hnaz-mm/master rostedt-trace/for-next]
[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]
url:
https://github.com/0day-ci/linux/commits/Xin-Hao/mm-damon-Add-NUMA-access...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
c5d9ae265b105d9a67575fb67bd4650a6fc08e25
config: x86_64-randconfig-a013
(
https://download.01.org/0day-ci/archive/20220216/202202162241.DMvnC744-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/a771208a72268cd66099adbc319a42f9d...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Xin-Hao/mm-damon-Add-NUMA-access-statistics-function-support/20220216-163243
git checkout a771208a72268cd66099adbc319a42f9d511219e
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/damon/paddr.c: In function '__damon_pa_mk_set':
> mm/damon/paddr.c:36:6: error: implicit declaration of function
'flush_tlb_page'; did you mean 'flush_anon_page'?
[-Werror=implicit-function-declaration]
36 | flush_tlb_page(vma, addr);
| ^~~~~~~~~~~~~~
| flush_anon_page
> mm/damon/paddr.c:45:6: error: implicit declaration of function
'flush_tlb_range'; did you mean 'flush_pmd_tlb_range'?
[-Werror=implicit-function-declaration]
45 | flush_tlb_range(vma, haddr,
haddr + HPAGE_PMD_SIZE);
| ^~~~~~~~~~~~~~~
| flush_pmd_tlb_range
cc1: some warnings being treated as errors
vim +36 mm/damon/paddr.c
18
19 static bool __damon_pa_mk_set(struct page *page, struct vm_area_struct *vma,
20 unsigned long addr, void *arg)
21 {
22 bool result = false;
23 struct page_vma_mapped_walk pvmw = {
24 .page = page,
25 .vma = vma,
26 .address = addr,
27 };
28
29 while (page_vma_mapped_walk(&pvmw)) {
30 addr = pvmw.address;
31 if (pvmw.pte) {
32 damon_ptep_mkold(pvmw.pte, vma->vm_mm, addr);
33 if (nr_online_nodes > 1) {
34 result = damon_ptep_mknone(pvmw.pte, vma, addr);
35 if (result)
36 flush_tlb_page(vma, addr);
37 }
38 } else {
39 damon_pmdp_mkold(pvmw.pmd, vma->vm_mm, addr);
40 if (nr_online_nodes > 1) {
41 result = damon_pmdp_mknone(pvmw.pmd, vma, addr);
42 if (result) {
43 unsigned long haddr = addr & HPAGE_PMD_MASK;
44
45 flush_tlb_range(vma, haddr, haddr + HPAGE_PMD_SIZE);
46 }
47 }
48 }
49 }
50 return true;
51 }
52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org