Re: [PATCH 3/3] RISC-V: Report vector unaligned accesse speed hwprobe

From: kernel test robot
Date: Thu Jun 06 2024 - 19:12:42 EST


Hi Jesse,

kernel test robot noticed the following build errors:

[auto build test ERROR on v6.9]
[cannot apply to akpm-mm/mm-everything linus/master v6.10-rc2 v6.10-rc1 next-20240606]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Jesse-Taube/RISC-V-Detect-unaligned-vector-accesses-supported/20240607-023434
base: v6.9
patch link: https://lore.kernel.org/r/20240606183215.416829-3-jesse%40rivosinc.com
patch subject: [PATCH 3/3] RISC-V: Report vector unaligned accesse speed hwprobe
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20240607/202406070612.Vj1dDiqM-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240607/202406070612.Vj1dDiqM-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/202406070612.Vj1dDiqM-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

arch/riscv/kernel/unaligned_access_speed.c: In function 'vec_check_unaligned_access_speed_all_cpus':
>> arch/riscv/kernel/unaligned_access_speed.c:370:30: error: 'check_vector_unaligned_access' undeclared (first use in this function); did you mean 'check_unaligned_access'?
370 | schedule_on_each_cpu(check_vector_unaligned_access);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| check_unaligned_access
arch/riscv/kernel/unaligned_access_speed.c:370:30: note: each undeclared identifier is reported only once for each function it appears in
>> arch/riscv/kernel/unaligned_access_speed.c:377:35: error: 'riscv_online_cpu_vec' undeclared (first use in this function); did you mean 'riscv_online_cpu'?
377 | riscv_online_cpu_vec, NULL);
| ^~~~~~~~~~~~~~~~~~~~
| riscv_online_cpu
arch/riscv/kernel/unaligned_access_speed.c: At top level:
>> arch/riscv/kernel/unaligned_access_speed.c:368:12: warning: 'vec_check_unaligned_access_speed_all_cpus' defined but not used [-Wunused-function]
368 | static int vec_check_unaligned_access_speed_all_cpus(void *unused)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +370 arch/riscv/kernel/unaligned_access_speed.c

366
367 /* Measure unaligned access speed on all CPUs present at boot in parallel. */
> 368 static int vec_check_unaligned_access_speed_all_cpus(void *unused)
369 {
> 370 schedule_on_each_cpu(check_vector_unaligned_access);
371
372 /*
373 * Setup hotplug callbacks for any new CPUs that come online or go
374 * offline.
375 */
376 cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, "riscv:online",
> 377 riscv_online_cpu_vec, NULL);
378
379 return 0;
380 }
381

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