[tip:smp/core 3/4] kernel/cpu.c:3110:9: error: expected identifier or '(' before '=' token

From: kernel test robot
Date: Tue Feb 20 2024 - 03:54:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/core
head: b57b4126dd3bb69db876ae7b271307ab7e0458b9
commit: da92df490eeab7a97a3390ff32e0ae091e0dc2eb [3/4] cpu: Mark cpu_possible_mask as __ro_after_init
config: parisc-allnoconfig (https://download.01.org/0day-ci/archive/20240220/202402201650.PKfPkpwx-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240220/202402201650.PKfPkpwx-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/202402201650.PKfPkpwx-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> kernel/cpu.c:3110:9: error: expected identifier or '(' before '=' token
3110 | = {CPU_BITS_ALL};
| ^


vim +3110 kernel/cpu.c

b3199c025d1646 Rusty Russell 2008-12-30 3107
b3199c025d1646 Rusty Russell 2008-12-30 3108 #ifdef CONFIG_INIT_ALL_POSSIBLE
da92df490eeab7 Alexey Dobriyan 2024-02-05 3109 struct cpumask __cpu_possible_mask __ro_after_init;
c4c54dd1caf139 Rasmus Villemoes 2016-01-20 @3110 = {CPU_BITS_ALL};
b3199c025d1646 Rusty Russell 2008-12-30 3111 #else
da92df490eeab7 Alexey Dobriyan 2024-02-05 3112 struct cpumask __cpu_possible_mask __ro_after_init;
b3199c025d1646 Rusty Russell 2008-12-30 3113 #endif
4b804c85dc37db Rasmus Villemoes 2016-01-20 3114 EXPORT_SYMBOL(__cpu_possible_mask);
b3199c025d1646 Rusty Russell 2008-12-30 3115

:::::: The code at line 3110 was first introduced by commit
:::::: c4c54dd1caf1393c529e7ea1f18b4342c796a49c kernel/cpu.c: change type of cpu_possible_bits and friends

:::::: TO: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

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