All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-4.19 15/19] mm/vmscan.c:3203:11: error: implicit declaration of function 'pte_index'; did you mean 'page_index'?
@ 2021-07-01  3:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-01  3:33 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 7298 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head:   652526ae2f46a52559921d8938b011fdcae9f910
commit: 0b9e593f5fb2c9cbb12e98204fc8f6fbffdb69a5 [15/19] FROMLIST: mm: multigenerational lru: Kconfig
config: openrisc-allmodconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-4.19
        git checkout 0b9e593f5fb2c9cbb12e98204fc8f6fbffdb69a5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   mm/vmscan.c: In function 'walk_pte_range':
>> mm/vmscan.c:3203:11: error: implicit declaration of function 'pte_index'; did you mean 'page_index'? [-Werror=implicit-function-declaration]
    3203 |  for (i = pte_index(start), addr = start; addr != end; i++, addr += PAGE_SIZE) {
         |           ^~~~~~~~~
         |           page_index
   mm/vmscan.c: In function 'try_to_free_mem_cgroup_pages':
   mm/vmscan.c:5828:6: warning: variable 'nid' set but not used [-Wunused-but-set-variable]
    5828 |  int nid;
         |      ^~~
   cc1: some warnings being treated as errors


vim +3203 mm/vmscan.c

8ac3b4c1509a12 Yu Zhao 2021-04-05  3186  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3187  static bool walk_pte_range(pmd_t *pmd, unsigned long start, unsigned long end,
8ac3b4c1509a12 Yu Zhao 2021-04-05  3188  			   struct mm_walk *walk)
8ac3b4c1509a12 Yu Zhao 2021-04-05  3189  {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3190  	int i;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3191  	pte_t *pte;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3192  	spinlock_t *ptl;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3193  	unsigned long addr;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3194  	int remote = 0;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3195  	struct mm_walk_args *args = walk->private;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3196  	int old_gen, new_gen = lru_gen_from_seq(args->max_seq);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3197  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3198  	VM_BUG_ON(pmd_trans_huge(*pmd) || pmd_devmap(*pmd));
8ac3b4c1509a12 Yu Zhao 2021-04-05  3199  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3200  	pte = pte_offset_map_lock(walk->mm, pmd, start & PMD_MASK, &ptl);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3201  	arch_enter_lazy_mmu_mode();
8ac3b4c1509a12 Yu Zhao 2021-04-05  3202  restart:
8ac3b4c1509a12 Yu Zhao 2021-04-05 @3203  	for (i = pte_index(start), addr = start; addr != end; i++, addr += PAGE_SIZE) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3204  		struct page *page;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3205  		unsigned long pfn = pte_pfn(pte[i]);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3206  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3207  		if (!pte_present(pte[i]) || is_zero_pfn(pfn)) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3208  			args->mm_stats[MM_LEAF_HOLE]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3209  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3210  		}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3211  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3212  		if (WARN_ON_ONCE(pte_devmap(pte[i]) || pte_special(pte[i])))
8ac3b4c1509a12 Yu Zhao 2021-04-05  3213  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3214  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3215  		if (!pte_young(pte[i])) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3216  			args->mm_stats[MM_LEAF_OLD]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3217  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3218  		}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3219  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3220  		VM_BUG_ON(!pfn_valid(pfn));
8ac3b4c1509a12 Yu Zhao 2021-04-05  3221  		if (pfn < args->start_pfn || pfn >= args->end_pfn) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3222  			args->mm_stats[MM_LEAF_OTHER_NODE]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3223  			remote++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3224  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3225  		}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3226  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3227  		page = compound_head(pfn_to_page(pfn));
8ac3b4c1509a12 Yu Zhao 2021-04-05  3228  		if (page_to_nid(page) != args->node_id) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3229  			args->mm_stats[MM_LEAF_OTHER_NODE]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3230  			remote++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3231  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3232  		}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3233  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3234  		if (page_memcg_rcu(page) != args->memcg) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3235  			args->mm_stats[MM_LEAF_OTHER_MEMCG]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3236  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3237  		}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3238  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3239  		VM_BUG_ON(addr < walk->vma->vm_start || addr >= walk->vma->vm_end);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3240  		if (!ptep_test_and_clear_young(walk->vma, addr, pte + i))
8ac3b4c1509a12 Yu Zhao 2021-04-05  3241  			continue;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3242  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3243  		if (pte_dirty(pte[i]) && !PageDirty(page) &&
8ac3b4c1509a12 Yu Zhao 2021-04-05  3244  		    !(PageAnon(page) && PageSwapBacked(page) && !PageSwapCache(page))) {
8ac3b4c1509a12 Yu Zhao 2021-04-05  3245  			set_page_dirty(page);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3246  			args->mm_stats[MM_LEAF_DIRTY]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3247  		}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3248  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3249  		old_gen = page_update_gen(page, new_gen);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3250  		if (old_gen >= 0 && old_gen != new_gen)
8ac3b4c1509a12 Yu Zhao 2021-04-05  3251  			update_batch_size(page, old_gen, new_gen, args);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3252  		args->mm_stats[MM_LEAF_YOUNG]++;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3253  	}
8ac3b4c1509a12 Yu Zhao 2021-04-05  3254  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3255  	if (i < PTRS_PER_PTE && get_next_vma(walk, PMD_MASK, PAGE_SIZE, &start, &end))
8ac3b4c1509a12 Yu Zhao 2021-04-05  3256  		goto restart;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3257  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3258  	arch_leave_lazy_mmu_mode();
8ac3b4c1509a12 Yu Zhao 2021-04-05  3259  	pte_unmap_unlock(pte, ptl);
8ac3b4c1509a12 Yu Zhao 2021-04-05  3260  
8ac3b4c1509a12 Yu Zhao 2021-04-05  3261  	return IS_ENABLED(CONFIG_HAVE_ARCH_PARENT_PMD_YOUNG) && !remote;
8ac3b4c1509a12 Yu Zhao 2021-04-05  3262  }
8ac3b4c1509a12 Yu Zhao 2021-04-05  3263  

:::::: The code@line 3203 was first introduced by commit
:::::: 8ac3b4c1509a1210d023ecd4ea3c2364f72a34b9 BACKPORT: FROMLIST: mm: multigenerational lru: aging

:::::: TO: Yu Zhao <yuzhao@google.com>
:::::: CC: Commit Bot <commit-bot@chromium.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 47372 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-01  3:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01  3:33 [chrome-os:chromeos-4.19 15/19] mm/vmscan.c:3203:11: error: implicit declaration of function 'pte_index'; did you mean 'page_index'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.