Re: [PATCH v2 bpf-next 2/2] selftests/bpf: Add selftests for cpumask iter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yafang,

kernel test robot noticed the following build errors:

[auto build test ERROR on bpf-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Yafang-Shao/bpf-Add-bpf_iter_cpumask-kfuncs/20240110-140322
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link:    https://lore.kernel.org/r/20240110060037.4202-3-laoar.shao%40gmail.com
patch subject: [PATCH v2 bpf-next 2/2] selftests/bpf: Add selftests for cpumask iter
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/20240115/202401150914.Rcl50Ct9-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/202401150914.Rcl50Ct9-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> progs/test_cpumask_iter.c:20:21: error: use of undeclared identifier 'NR_PSI_TASK_COUNTS'
      20 |         unsigned int tasks[NR_PSI_TASK_COUNTS];
         |                            ^
>> progs/test_cpumask_iter.c:41:2: error: assigning to 'u32 *' (aka 'unsigned int *') from 'int *' converts between pointers to integer types with different sign [-Werror,-Wpointer-sign]
      41 |         bpf_for_each(cpumask, cpu, &mask->cpumask) {
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   /tools/include/bpf/bpf_helpers.h:348:10: note: expanded from macro 'bpf_for_each'
     348 |         (((cur) = bpf_iter_##type##_next(&___it)));                                             \
         |                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> progs/test_cpumask_iter.c:51:55: error: incomplete definition of type 'struct psi_group_cpu'
      51 |                 bpf_probe_read_kernel(&tasks, sizeof(tasks), &groupc->tasks);
         |                                                               ~~~~~~^
   progs/test_cpumask_iter.c:11:21: note: forward declaration of 'struct psi_group_cpu'
      11 | extern const struct psi_group_cpu system_group_pcpu __ksym __weak;
         |                     ^
>> progs/test_cpumask_iter.c:52:27: error: use of undeclared identifier 'NR_RUNNING'; did you mean 'T_RUNNING'?
      52 |                 psi_nr_running += tasks[NR_RUNNING];
         |                                         ^~~~~~~~~~
         |                                         T_RUNNING
   /tools/include/vmlinux.h:11216:3: note: 'T_RUNNING' declared here
    11216 |                 T_RUNNING = 0,
          |                 ^
   4 errors generated.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux