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: powerpc64-randconfig-002-20250118 (https://download.01.org/0day-ci/archive/20250118/202501180416.VoUpllWu-lkp@xxxxxxxxx/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250118/202501180416.VoUpllWu-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/202501180416.VoUpllWu-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from kernel/cgroup/cpuset-v1.c:3: In file included from kernel/cgroup/cpuset-internal.h:6: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:8: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/powerpc/include/asm/io.h:24: In file included from include/linux/mm.h:2223: include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ >> kernel/cgroup/cpuset-v1.c:397:11: error: call to undeclared function 'cgroup_path_ns_locked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 397 | retval = cgroup_path_ns_locked(css->cgroup, buf, PATH_MAX, | ^ kernel/cgroup/cpuset-v1.c:397:11: note: did you mean 'cgroup_path_ns'? include/linux/cgroup.h:786:5: note: 'cgroup_path_ns' declared here 786 | int cgroup_path_ns(struct cgroup *cgrp, char *buf, size_t buflen, | ^ 4 warnings and 1 error generated. vim +/cgroup_path_ns_locked +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