* mm/memcontrol.c:4865:23: error: implicit declaration of function 'mem_cgroup_nr_lru_pages'; did you mean 'memcg_nr_lru_pages'?
@ 2024-02-21 18:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-21 18:14 UTC (permalink / raw)
To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-21 18:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 18:14 mm/memcontrol.c:4865:23: error: implicit declaration of function 'mem_cgroup_nr_lru_pages'; did you mean 'memcg_nr_lru_pages'? 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.