tree: https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next head: 03a12b026323247a320495fed3719d39cffdbe9b commit: 03a12b026323247a320495fed3719d39cffdbe9b [5/5] cgroup/cpuset: Move procfs cpuset attribute under cgroup-v1.c config: x86_64-buildonly-randconfig-006-20250118 (https://download.01.org/0day-ci/archive/20250118/202501180315.KcDn5BG5-lkp@xxxxxxxxx/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250118/202501180315.KcDn5BG5-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202501180315.KcDn5BG5-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): kernel/cgroup/cpuset-v1.c: In function 'proc_cpuset_show': >> kernel/cgroup/cpuset-v1.c:397:18: error: implicit declaration of function 'cgroup_path_ns_locked'; did you mean 'cgroup_path_ns'? [-Werror=implicit-function-declaration] 397 | retval = cgroup_path_ns_locked(css->cgroup, buf, PATH_MAX, | ^~~~~~~~~~~~~~~~~~~~~ | cgroup_path_ns cc1: some warnings being treated as errors vim +397 kernel/cgroup/cpuset-v1.c 375 376 #ifdef CONFIG_PROC_PID_CPUSET 377 /* 378 * proc_cpuset_show() 379 * - Print tasks cpuset path into seq_file. 380 * - Used for /proc/<pid>/cpuset. 381 */ 382 int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns, 383 struct pid *pid, struct task_struct *tsk) 384 { 385 char *buf; 386 struct cgroup_subsys_state *css; 387 int retval; 388 389 retval = -ENOMEM; 390 buf = kmalloc(PATH_MAX, GFP_KERNEL); 391 if (!buf) 392 goto out; 393 394 rcu_read_lock(); 395 spin_lock_irq(&css_set_lock); 396 css = task_css(tsk, cpuset_cgrp_id); > 397 retval = cgroup_path_ns_locked(css->cgroup, buf, PATH_MAX, 398 current->nsproxy->cgroup_ns); 399 spin_unlock_irq(&css_set_lock); 400 rcu_read_unlock(); 401 402 if (retval == -E2BIG) 403 retval = -ENAMETOOLONG; 404 if (retval < 0) 405 goto out_free; 406 seq_puts(m, buf); 407 seq_putc(m, '\n'); 408 retval = 0; 409 out_free: 410 kfree(buf); 411 out: 412 return retval; 413 } 414 #endif /* CONFIG_PROC_PID_CPUSET */ 415 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki