[openeuler:OLK-5.10 3407/3407] 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: da8948fdddb84e5496272bab85973165594dd469 commit: 590ef7039097222551e104343ae4ba74e4ed2f87 [3407/3407] cgroup: add cgroup_v1v2_get_from_[fd/file]() config: arm64-randconfig-r071-20251212 (https://download.01.org/0day-ci/archive/20251213/202512131534.2ojlpY7Q-lkp@i...) compiler: aarch64-linux-gcc (GCC) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512131534.2ojlpY7Q-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/202512131534.2ojlpY7Q-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