All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2025-07-02 15:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-02 15:56 UTC (permalink / raw)
  To: kernel, Liu Jian; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-02 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 15:56 [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' 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.