public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexey Gladkov <legion@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [legion:patchset/meminfo/v2.1 1/1] mm/memcontrol.c:4147:43: error: use of undeclared identifier 'NR_SWAPCACHE'
Date: Sun, 19 Nov 2023 17:14:35 +0800	[thread overview]
Message-ID: <202311191747.MQDEUNJY-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-11-19  9:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202311191747.MQDEUNJY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=legion@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox