All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Liu Jian <liujian56@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 2882/2882] kernel/cgroup/cgroup.c:6734: warning: Function parameter or member 'fd' not described in 'cgroup_get_from_fd_v2'
Date: Wed, 2 Jul 2025 17:56:06 +0200	[thread overview]
Message-ID: <202507021750.a3TifDd5-lkp@intel.com> (raw)

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   e4755f6a2b98f251edcf63f98f416b5d76425f8c
commit: 56fee14453059f894b018d08071826d47e634800 [2882/2882] cgroup: make cgroup_bpf_prog_attach work when cgroup2 is not mounted
config: x86_64-randconfig-2002-20250501 (https://download.01.org/0day-ci/archive/20250702/202507021750.a3TifDd5-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250702/202507021750.a3TifDd5-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/202507021750.a3TifDd5-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/cgroup/cgroup.c:6217: warning: Function parameter or member 'f' not described in 'cgroup_get_from_file'
   kernel/cgroup/cgroup.c:6369: warning: Function parameter or member 'kargs' not described in 'cgroup_can_fork'
   kernel/cgroup/cgroup.c:6430: warning: Function parameter or member 'kargs' not described in 'cgroup_post_fork'
   kernel/cgroup/cgroup.c:6716: warning: Function parameter or member 'fd' not described in 'cgroup_get_from_fd'
>> kernel/cgroup/cgroup.c:6734: warning: Function parameter or member 'fd' not described in 'cgroup_get_from_fd_v2'


vim +6734 kernel/cgroup/cgroup.c

  6729	
  6730	/**
  6731	 * same with cgroup_get_from_fd, only add cgrp_dfl_visible check
  6732	 */
  6733	struct cgroup *cgroup_get_from_fd_v2(int fd)
> 6734	{
  6735		struct cgroup *cgrp = cgroup_v1v2_get_from_fd(fd);
  6736	
  6737		if (IS_ERR(cgrp))
  6738			return ERR_CAST(cgrp);
  6739	
  6740		if (!cgroup_on_dfl(cgrp)) {
  6741			cgroup_put(cgrp);
  6742			if (cgrp_dfl_visible)
  6743				return ERR_PTR(-EBADF);
  6744	
  6745			cgrp = &cgrp_dfl_root.cgrp;
  6746			cgroup_get(cgrp);
  6747		}
  6748		return cgrp;
  6749	}
  6750	EXPORT_SYMBOL_GPL(cgroup_get_from_fd_v2);
  6751	

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

                 reply	other threads:[~2025-07-02 15:56 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=202507021750.a3TifDd5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=liujian56@huawei.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.