All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: jasperwang@tencent.com, kaixuxia@tencent.com,
	frankjpliu@tencent.com, kasong@tencent.com,
	sagazchen@tencent.com, kernelxing@tencent.com,
	aurelianliu@tencent.com, jason.zeng@intel.com,
	wu.zheng@intel.com, yingbao.jia@intel.com, pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: mm/memcontrol.c:4865:23: error: implicit declaration of function 'mem_cgroup_nr_lru_pages'; did you mean 'memcg_nr_lru_pages'?
Date: Thu, 22 Feb 2024 02:14:36 +0800	[thread overview]
Message-ID: <202402220242.P4WDOp6S-lkp@intel.com> (raw)

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009
head:   3bf5c3f6e32e9cfe13f09bac3ae93b8e39d472c1
commit: 590eaf1fec755215547690e787cc7d83f58ea948 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces.
date:   2 years, 11 months ago
config: x86_64-buildonly-randconfig-003-20240221 (https://download.01.org/0day-ci/archive/20240222/202402220242.P4WDOp6S-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240222/202402220242.P4WDOp6S-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/202402220242.P4WDOp6S-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/page_counter.h:6,
                    from mm/memcontrol.c:25:
   mm/memcontrol.c: In function 'mem_cgroup_get_max':
   include/linux/kernel.h:875:45: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
     875 | #define min(x, y)       __careful_cmp(x, y, <)
         |                                             ^
   include/linux/kernel.h:858:30: note: in definition of macro '__cmp'
     858 | #define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
         |                              ^~
   include/linux/kernel.h:875:25: note: in expansion of macro '__careful_cmp'
     875 | #define min(x, y)       __careful_cmp(x, y, <)
         |                         ^~~~~~~~~~~~~
   mm/memcontrol.c:1577:28: note: in expansion of macro 'min'
    1577 |                 swap_max = min(swap_max, (unsigned long)total_swap_pages);
         |                            ^~~
   mm/memcontrol.c: In function 'memcg_nr_lru_pages':
>> mm/memcontrol.c:4865:23: error: implicit declaration of function 'mem_cgroup_nr_lru_pages'; did you mean 'memcg_nr_lru_pages'? [-Werror=implicit-function-declaration]
    4865 |                 nr += mem_cgroup_nr_lru_pages(iter, lru_mask);
         |                       ^~~~~~~~~~~~~~~~~~~~~~~
         |                       memcg_nr_lru_pages
   cc1: some warnings being treated as errors


vim +4865 mm/memcontrol.c

  4857	
  4858	static unsigned long memcg_nr_lru_pages(struct mem_cgroup *memcg,
  4859				unsigned int lru_mask)
  4860	{
  4861		unsigned long nr = 0;
  4862		struct mem_cgroup *iter;
  4863	
  4864		for_each_mem_cgroup_tree(iter, memcg)
> 4865			nr += mem_cgroup_nr_lru_pages(iter, lru_mask);
  4866	
  4867		return nr;
  4868	}
  4869	

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

                 reply	other threads:[~2024-02-21 18: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=202402220242.P4WDOp6S-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aurelianliu@tencent.com \
    --cc=frankjpliu@tencent.com \
    --cc=jason.zeng@intel.com \
    --cc=jasperwang@tencent.com \
    --cc=kaixuxia@tencent.com \
    --cc=kasong@tencent.com \
    --cc=kernelxing@tencent.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pei.p.jia@intel.com \
    --cc=sagazchen@tencent.com \
    --cc=wu.zheng@intel.com \
    --cc=yingbao.jia@intel.com \
    /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 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.