All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [kkdwivedi:cgns 1/2] mm/memcontrol.c:3629:31: error: too few arguments to function call, expected 2, have 1
Date: Tue, 12 Aug 2025 06:27:35 +0800	[thread overview]
Message-ID: <202508120614.AZsG8gdu-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-11 22:28 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=202508120614.AZsG8gdu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=memxor@gmail.com \
    --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 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.