[kevin78:percpu-cleanup 2/4] arch/sparc/kernel/smp_64.c:1644:45: error: 'cpu_to_node' undeclared; did you mean 'dev_to_node'?

From: kernel test robot
Date: Mon Dec 13 2021 - 08:23:51 EST


tree: https://github.com/kevin78/linux.git percpu-cleanup
head: ec8bef0e65982bb71c931efddde0fca6418e02ba
commit: 802124ef348edb29320cfba0dc15edb1c1f7f0c1 [2/4] mm: percpu: Add pcpu_fc_cpu_to_node_fn_t typedef
config: sparc64-randconfig-p001-20211212 (https://download.01.org/0day-ci/archive/20211213/202112132105.zCgSs9Zg-lkp@xxxxxxxxx/config)
compiler: sparc64-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://github.com/kevin78/linux/commit/802124ef348edb29320cfba0dc15edb1c1f7f0c1
git remote add kevin78 https://github.com/kevin78/linux.git
git fetch --no-tags kevin78 percpu-cleanup
git checkout 802124ef348edb29320cfba0dc15edb1c1f7f0c1
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc64 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/sparc/kernel/smp_64.c: In function 'setup_per_cpu_areas':
>> arch/sparc/kernel/smp_64.c:1644:45: error: 'cpu_to_node' undeclared (first use in this function); did you mean 'dev_to_node'?
1644 | cpu_to_node,
| ^~~~~~~~~~~
| dev_to_node
arch/sparc/kernel/smp_64.c:1644:45: note: each undeclared identifier is reported only once for each function it appears in


vim +1644 arch/sparc/kernel/smp_64.c

1633
1634 void __init setup_per_cpu_areas(void)
1635 {
1636 unsigned long delta;
1637 unsigned int cpu;
1638 int rc = -EINVAL;
1639
1640 if (pcpu_chosen_fc != PCPU_FC_PAGE) {
1641 rc = pcpu_embed_first_chunk(PERCPU_MODULE_RESERVE,
1642 PERCPU_DYNAMIC_RESERVE, 4 << 20,
1643 pcpu_cpu_distance,
> 1644 cpu_to_node,

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