* Re: [RFC PATCH V0 03/10] mm: Scan the mm and create a migration list [not found] <20241201153818.2633616-4-raghavendra.kt@amd.com> @ 2024-12-01 21:05 ` kernel test robot 2024-12-02 8:27 ` Raghavendra K T 0 siblings, 1 reply; 2+ messages in thread From: kernel test robot @ 2024-12-01 21:05 UTC (permalink / raw) To: Raghavendra K T; +Cc: llvm, oe-kbuild-all Hi Raghavendra, [This is a private test report for your RFC patch.] kernel test robot noticed the following build errors: [auto build test ERROR on bcc8eda6d34934d80b96adb8dc4ff5dfc632a53a] url: https://github.com/intel-lab-lkp/linux/commits/Raghavendra-K-T/mm-Add-kmmscand-kernel-daemon/20241201-234153 base: bcc8eda6d34934d80b96adb8dc4ff5dfc632a53a patch link: https://lore.kernel.org/r/20241201153818.2633616-4-raghavendra.kt%40amd.com patch subject: [RFC PATCH V0 03/10] mm: Scan the mm and create a migration list config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20241202/202412020401.kTXL2n6L-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241202/202412020401.kTXL2n6L-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/202412020401.kTXL2n6L-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/kmmscand.c:2: In file included from include/linux/mm.h:2223: include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from mm/kmmscand.c:14: include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ >> mm/kmmscand.c:159:36: error: use of undeclared identifier 'vma' 159 | VM_BUG_ON_VMA(address == -EFAULT, vma); | ^ 6 warnings and 1 error generated. vim +/vma +159 mm/kmmscand.c 145 146 static void page_idle_clear_pte_refs(struct page *page, pte_t *pte, struct mm_walk *walk) 147 { 148 bool need_lock; 149 struct folio *folio = page_folio(page); 150 unsigned long address; 151 152 if (!folio_mapped(folio) || !folio_raw_mapping(folio)) 153 return; 154 155 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); 156 if (need_lock && !folio_trylock(folio)) 157 return; 158 address = vma_address(walk->vma, page_pgoff(folio, page), compound_nr(page)); > 159 VM_BUG_ON_VMA(address == -EFAULT, vma); 160 folio_idle_clear_pte_refs_one(folio, walk->vma, address, pte); 161 162 if (need_lock) 163 folio_unlock(folio); 164 } 165 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC PATCH V0 03/10] mm: Scan the mm and create a migration list 2024-12-01 21:05 ` [RFC PATCH V0 03/10] mm: Scan the mm and create a migration list kernel test robot @ 2024-12-02 8:27 ` Raghavendra K T 0 siblings, 0 replies; 2+ messages in thread From: Raghavendra K T @ 2024-12-02 8:27 UTC (permalink / raw) To: kernel test robot; +Cc: llvm, oe-kbuild-all On 12/2/2024 2:35 AM, kernel test robot wrote: > Hi Raghavendra, > > [This is a private test report for your RFC patch.] > kernel test robot noticed the following build errors: > > [auto build test ERROR on bcc8eda6d34934d80b96adb8dc4ff5dfc632a53a] > > url: https://github.com/intel-lab-lkp/linux/commits/Raghavendra-K-T/mm-Add-kmmscand-kernel-daemon/20241201-234153 > base: bcc8eda6d34934d80b96adb8dc4ff5dfc632a53a > patch link: https://lore.kernel.org/r/20241201153818.2633616-4-raghavendra.kt%40amd.com > patch subject: [RFC PATCH V0 03/10] mm: Scan the mm and create a migration list > config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20241202/202412020401.kTXL2n6L-lkp@intel.com/config) > compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241202/202412020401.kTXL2n6L-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/202412020401.kTXL2n6L-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > In file included from mm/kmmscand.c:2: > In file included from include/linux/mm.h:2223: > include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 505 | item]; > | ~~~~ > include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 512 | NR_VM_NUMA_EVENT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~~ > include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] > 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" > | ~~~~~~~~~~~ ^ ~~~ > include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] > 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~ ^ > 525 | NR_VM_NUMA_EVENT_ITEMS + > | ~~~~~~~~~~~~~~~~~~~~~~ > In file included from mm/kmmscand.c:14: > include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] > 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); > | ~~~~~~~~~~~ ^ ~~~ > include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] > 49 | NR_ZONE_LRU_BASE + lru, nr_pages); > | ~~~~~~~~~~~~~~~~ ^ ~~~ >>> mm/kmmscand.c:159:36: error: use of undeclared identifier 'vma' > 159 | VM_BUG_ON_VMA(address == -EFAULT, vma); > | ^ > 6 warnings and 1 error generated. > > > vim +/vma +159 mm/kmmscand.c > > 145 > 146 static void page_idle_clear_pte_refs(struct page *page, pte_t *pte, struct mm_walk *walk) > 147 { > 148 bool need_lock; > 149 struct folio *folio = page_folio(page); > 150 unsigned long address; > 151 > 152 if (!folio_mapped(folio) || !folio_raw_mapping(folio)) > 153 return; > 154 > 155 need_lock = !folio_test_anon(folio) || folio_test_ksm(folio); > 156 if (need_lock && !folio_trylock(folio)) > 157 return; > 158 address = vma_address(walk->vma, page_pgoff(folio, page), compound_nr(page)); > > 159 VM_BUG_ON_VMA(address == -EFAULT, vma); Thanks .. will fix in next version.. vma ==> walk->vma. Normal config did not get this error. > 160 folio_idle_clear_pte_refs_one(folio, walk->vma, address, pte); > 161 > 162 if (need_lock) > 163 folio_unlock(folio); > 164 } > 165 > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-02 8:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20241201153818.2633616-4-raghavendra.kt@amd.com>
2024-12-01 21:05 ` [RFC PATCH V0 03/10] mm: Scan the mm and create a migration list kernel test robot
2024-12-02 8:27 ` Raghavendra K T
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox