[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <besdqn664ys7izgipfi5wloy4kmscosipizpbxt3hig6zvo2cz@yibkwnkitc7h>
Date: Tue, 16 Dec 2025 15:00:22 +0800
From: Vernon Yang <vernon2gm@...il.com>
To: kernel test robot <lkp@...el.com>
Cc: akpm@...ux-foundation.org, david@...nel.org,
lorenzo.stoakes@...cle.com, oe-kbuild-all@...ts.linux.dev, ziy@...dia.com, baohua@...nel.org,
lance.yang@...ux.dev, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Vernon Yang <yanglincheng@...inos.cn>
Subject: Re: [PATCH 3/4] mm: khugepaged: move mm to list tail when
MADV_COLD/MADV_FREE
On Tue, Dec 16, 2025 at 05:12:16AM +0800, kernel test robot wrote:
> Hi Vernon,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on akpm-mm/mm-everything]
> [also build test ERROR on linus/master v6.19-rc1 next-20251215]
> [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#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Vernon-Yang/mm-khugepaged-add-trace_mm_khugepaged_scan-event/20251215-171046
> base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
> patch link: https://lore.kernel.org/r/20251215090419.174418-4-yanglincheng%40kylinos.cn
> patch subject: [PATCH 3/4] mm: khugepaged: move mm to list tail when MADV_COLD/MADV_FREE
> config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20251216/202512160400.pTmarqg6-lkp@intel.com/config)
> compiler: arc-linux-gcc (GCC) 15.1.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251216/202512160400.pTmarqg6-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@...el.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202512160400.pTmarqg6-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> mm/madvise.c: In function 'madvise_cold':
> >> mm/madvise.c:609:9: error: implicit declaration of function 'khugepaged_move_tail'; did you mean 'khugepaged_exit'? [-Wimplicit-function-declaration]
> 609 | khugepaged_move_tail(vma->vm_mm);
> | ^~~~~~~~~~~~~~~~~~~~
> | khugepaged_exit
When CONFIG_TRANSPARENT_HUGEPAGE is disabled, trigger this build errors.
I'll fix it in the next version, Thanks!
>
> vim +609 mm/madvise.c
>
> 595
> 596 static long madvise_cold(struct madvise_behavior *madv_behavior)
> 597 {
> 598 struct vm_area_struct *vma = madv_behavior->vma;
> 599 struct mmu_gather tlb;
> 600
> 601 if (!can_madv_lru_vma(vma))
> 602 return -EINVAL;
> 603
> 604 lru_add_drain();
> 605 tlb_gather_mmu(&tlb, madv_behavior->mm);
> 606 madvise_cold_page_range(&tlb, madv_behavior);
> 607 tlb_finish_mmu(&tlb);
> 608
> > 609 khugepaged_move_tail(vma->vm_mm);
> 610
> 611 return 0;
> 612 }
> 613
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
--
Thanks,
Vernon
Powered by blists - more mailing lists