[robh:mpam/cache-id 8/12] arch/openrisc/kernel/smp.c:68:26: error: too few arguments to function 'of_get_cpu_hwid'

From: kernel test robot
Date: Thu Oct 07 2021 - 12:57:09 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git mpam/cache-id
head: 4dec66d0c19165b654cca2ce8810615f61709693
commit: 7a517f9f9f3c9fb8b09eabd4fbdf6b2b829082ef [8/12] openrisc: Use of_get_cpu_hwid()
config: openrisc-buildonly-randconfig-r002-20211007 (attached as .config)
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?id=7a517f9f9f3c9fb8b09eabd4fbdf6b2b829082ef
git remote add robh https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
git fetch --no-tags robh mpam/cache-id
git checkout 7a517f9f9f3c9fb8b09eabd4fbdf6b2b829082ef
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arch/openrisc/kernel/smp.c: In function 'smp_init_cpus':
>> arch/openrisc/kernel/smp.c:68:26: error: too few arguments to function 'of_get_cpu_hwid'
68 | cpu_id = of_get_cpu_hwid(cpu);
| ^~~~~~~~~~~~~~~
In file included from arch/openrisc/kernel/smp.c:19:
include/linux/of.h:356:12: note: declared here
356 | extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
| ^~~~~~~~~~~~~~~
arch/openrisc/kernel/smp.c: At top level:
arch/openrisc/kernel/smp.c:116:24: warning: no previous prototype for 'secondary_start_kernel' [-Wmissing-prototypes]
116 | asmlinkage __init void secondary_start_kernel(void)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/openrisc/kernel/smp.c:201:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]
201 | int setup_profiling_timer(unsigned int multiplier)
| ^~~~~~~~~~~~~~~~~~~~~


vim +/of_get_cpu_hwid +68 arch/openrisc/kernel/smp.c

61
62 void __init smp_init_cpus(void)
63 {
64 struct device_node *cpu;
65 u32 cpu_id;
66
67 for_each_of_cpu_node(cpu) {
> 68 cpu_id = of_get_cpu_hwid(cpu);
69 if (cpu_id < NR_CPUS)
70 set_cpu_possible(cpu_id, true);
71 }
72 }
73

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip