All of lore.kernel.org
 help / color / mirror / Atom feed
* [kkdwivedi:cgns 1/2] mm/memcontrol.c:3629:31: error: too few arguments to function call, expected 2, have 1
@ 2025-08-11 22:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-11 22:27 UTC (permalink / raw)
  To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all

tree:   https://github.com/kkdwivedi/linux cgns
head:   0cec2bb6438cabeaac49e0f608bacca6636eeffd
commit: d7ffaa6f39eb4ea1670f4b2660004e2e04afca19 [1/2] bpf: Do not limit bpf_cgroup_from_id to current's namespace
config: i386-buildonly-randconfig-005-20250812 (https://download.01.org/0day-ci/archive/20250812/202508120614.AZsG8gdu-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250812/202508120614.AZsG8gdu-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/202508120614.AZsG8gdu-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/memcontrol.c:3629:31: error: too few arguments to function call, expected 2, have 1
    3629 |         cgrp = cgroup_get_from_id(ino);
         |                ~~~~~~~~~~~~~~~~~~    ^
   include/linux/cgroup.h:653:16: note: 'cgroup_get_from_id' declared here
     653 | struct cgroup *cgroup_get_from_id(u64 id, bool root_cgns);
         |                ^                  ~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +3629 mm/memcontrol.c

73f576c04b9410 Johannes Weiner 2016-07-20  3621  
c15187a4a2d660 Roman Gushchin  2022-05-31  3622  #ifdef CONFIG_SHRINKER_DEBUG
c15187a4a2d660 Roman Gushchin  2022-05-31  3623  struct mem_cgroup *mem_cgroup_get_from_ino(unsigned long ino)
c15187a4a2d660 Roman Gushchin  2022-05-31  3624  {
c15187a4a2d660 Roman Gushchin  2022-05-31  3625  	struct cgroup *cgrp;
c15187a4a2d660 Roman Gushchin  2022-05-31  3626  	struct cgroup_subsys_state *css;
c15187a4a2d660 Roman Gushchin  2022-05-31  3627  	struct mem_cgroup *memcg;
c15187a4a2d660 Roman Gushchin  2022-05-31  3628  
c15187a4a2d660 Roman Gushchin  2022-05-31 @3629  	cgrp = cgroup_get_from_id(ino);
fa7e439cf90ba2 Michal Koutný   2022-08-26  3630  	if (IS_ERR(cgrp))
c0f2df49cf2471 Tejun Heo       2022-08-28  3631  		return ERR_CAST(cgrp);
c15187a4a2d660 Roman Gushchin  2022-05-31  3632  
c15187a4a2d660 Roman Gushchin  2022-05-31  3633  	css = cgroup_get_e_css(cgrp, &memory_cgrp_subsys);
c15187a4a2d660 Roman Gushchin  2022-05-31  3634  	if (css)
c15187a4a2d660 Roman Gushchin  2022-05-31  3635  		memcg = container_of(css, struct mem_cgroup, css);
c15187a4a2d660 Roman Gushchin  2022-05-31  3636  	else
c15187a4a2d660 Roman Gushchin  2022-05-31  3637  		memcg = ERR_PTR(-ENOENT);
c15187a4a2d660 Roman Gushchin  2022-05-31  3638  
c15187a4a2d660 Roman Gushchin  2022-05-31  3639  	cgroup_put(cgrp);
c15187a4a2d660 Roman Gushchin  2022-05-31  3640  
c15187a4a2d660 Roman Gushchin  2022-05-31  3641  	return memcg;
c15187a4a2d660 Roman Gushchin  2022-05-31  3642  }
c15187a4a2d660 Roman Gushchin  2022-05-31  3643  #endif
c15187a4a2d660 Roman Gushchin  2022-05-31  3644  

:::::: The code at line 3629 was first introduced by commit
:::::: c15187a4a2d660bf490f7873afd0de5288f65c8f mm: memcontrol: introduce mem_cgroup_ino() and mem_cgroup_get_from_ino()

:::::: TO: Roman Gushchin <roman.gushchin@linux.dev>
:::::: CC: akpm <akpm@linux-foundation.org>

-- 
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:[~2025-08-11 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 22:27 [kkdwivedi:cgns 1/2] mm/memcontrol.c:3629:31: error: too few arguments to function call, expected 2, have 1 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.