[openeuler:OLK-5.10 2882/2882] kernel/cgroup/cgroup.c:6217: warning: Function parameter or member 'f' not described in 'cgroup_get_from_file'

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: e4755f6a2b98f251edcf63f98f416b5d76425f8c commit: 590ef7039097222551e104343ae4ba74e4ed2f87 [2882/2882] cgroup: add cgroup_v1v2_get_from_[fd/file]() config: x86_64-randconfig-2002-20250501 (https://download.01.org/0day-ci/archive/20250702/202507021519.N5QrYRTq-lkp@i...) 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/202507021519.N5QrYRTq-lkp@i...) 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/202507021519.N5QrYRTq-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'
vim +6217 kernel/cgroup/cgroup.c 6211 6212 /** 6213 * cgroup_get_from_file - same as cgroup_v1v2_get_from_file, but only supports 6214 * cgroup2. 6215 */ 6216 static struct cgroup *cgroup_get_from_file(struct file *f)
6217 { 6218 struct cgroup *cgrp = cgroup_v1v2_get_from_file(f); 6219 6220 if (IS_ERR(cgrp)) 6221 return ERR_CAST(cgrp); 6222 6223 if (!cgroup_on_dfl(cgrp)) { 6224 cgroup_put(cgrp); 6225 return ERR_PTR(-EBADF); 6226 } 6227 6228 return cgrp; 6229 } 6230
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot