Re: [PATCH] damon: Use pmdp_get instead of drect dereferencing pmd.

From: Yun Levi
Date: Fri Jul 28 2023 - 04:19:00 EST


This build warning is fixed in v2:
https://lore.kernel.org/all/20230727212157.2985025-1-ppbuk5246@xxxxxxxxx/

On Fri, Jul 28, 2023 at 9:09 AM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> Hi Levi,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on akpm-mm/mm-everything]
> [also build test WARNING on linus/master v6.5-rc3 next-20230728]
> [cannot apply to sj/damon/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#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Levi-Yun/damon-Use-pmdp_get-instead-of-drect-dereferencing-pmd/20230728-024044
> base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
> patch link: https://lore.kernel.org/r/20230727183745.682880-1-ppbuk5246%40gmail.com
> patch subject: [PATCH] damon: Use pmdp_get instead of drect dereferencing pmd.
> config: i386-randconfig-i016-20230727 (https://download.01.org/0day-ci/archive/20230728/202307281532.pVsrTsL2-lkp@xxxxxxxxx/config)
> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
> reproduce: (https://download.01.org/0day-ci/archive/20230728/202307281532.pVsrTsL2-lkp@xxxxxxxxx/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@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202307281532.pVsrTsL2-lkp@xxxxxxxxx/
>
> All warnings (new ones prefixed by >>):
>
> mm/damon/vaddr.c: In function 'damon_young_pmd_entry':
> >> mm/damon/vaddr.c:440:15: warning: unused variable 'pmde' [-Wunused-variable]
> 440 | pmd_t pmde;
> | ^~~~
>
>
> vim +/pmde +440 mm/damon/vaddr.c
>
> 434
> 435 static int damon_young_pmd_entry(pmd_t *pmd, unsigned long addr,
> 436 unsigned long next, struct mm_walk *walk)
> 437 {
> 438 pte_t *pte;
> 439 pte_t ptent;
> > 440 pmd_t pmde;
> 441 spinlock_t *ptl;
> 442 struct folio *folio;
> 443 struct damon_young_walk_private *priv = walk->private;
> 444
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>