public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [legion:patchset/meminfo/v2.1 1/1] mm/memcontrol.c:4147:43: error: use of undeclared identifier 'NR_SWAPCACHE'
@ 2023-11-19  9:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-19  9:14 UTC (permalink / raw)
  To: Alexey Gladkov; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/legion/linux.git patchset/meminfo/v2.1
head:   cc6200454eb83b4e846d90f08e6db172946d5301
commit: cc6200454eb83b4e846d90f08e6db172946d5301 [1/1] proc: Implement /proc/self/meminfo
config: x86_64-randconfig-003-20231119 (https://download.01.org/0day-ci/archive/20231119/202311191747.MQDEUNJY-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231119/202311191747.MQDEUNJY-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/202311191747.MQDEUNJY-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/memcontrol.c:4147:43: error: use of undeclared identifier 'NR_SWAPCACHE'
           mi->swapcached = memcg_page_state(memcg, NR_SWAPCACHE);
                                                    ^
   1 error generated.


vim +/NR_SWAPCACHE +4147 mm/memcontrol.c

  4130	
  4131	void mem_fill_meminfo(struct meminfo *mi, struct task_struct *task)
  4132	{
  4133		struct cgroup_subsys_state *memcg_css = task_css(task, memory_cgrp_id);
  4134		struct mem_cgroup *memcg = mem_cgroup_from_css(memcg_css);
  4135		int nid;
  4136	
  4137		memset(&mi->pages, 0, sizeof(mi->pages));
  4138	
  4139		mem_cgroup_si_meminfo(&mi->si, task);
  4140	
  4141		for_each_online_node(nid)
  4142			mem_cgroup_nr_pages(memcg, nid, mi->pages);
  4143	
  4144		mi->slab_reclaimable = memcg_page_state(memcg, NR_SLAB_RECLAIMABLE_B);
  4145		mi->slab_unreclaimable = memcg_page_state(memcg, NR_SLAB_UNRECLAIMABLE_B);
  4146		mi->cached = memcg_page_state(memcg, NR_FILE_PAGES);
> 4147		mi->swapcached = memcg_page_state(memcg, NR_SWAPCACHE);
  4148		mi->anon_pages = memcg_page_state(memcg, NR_ANON_MAPPED);
  4149		mi->mapped = memcg_page_state(memcg, NR_FILE_MAPPED);
  4150		mi->nr_pagetable = memcg_page_state(memcg, NR_PAGETABLE);
  4151		mi->nr_secpagetable = memcg_page_state(memcg, NR_SECONDARY_PAGETABLE);
  4152		mi->dirty_pages = memcg_page_state(memcg, NR_FILE_DIRTY);
  4153		mi->writeback_pages = memcg_page_state(memcg, NR_WRITEBACK);
  4154	}
  4155	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-11-19  9:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-19  9:14 [legion:patchset/meminfo/v2.1 1/1] mm/memcontrol.c:4147:43: error: use of undeclared identifier 'NR_SWAPCACHE' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox