tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/irqstate
head: a6725b65bba0aa1d329b2a2b79aa968d5a8424a8
commit: 7eb951b5f72bd1a69007f417399a91f73b156898 [14/17] powerpc64: Break asm/percpu.h vs
spinlock_types.h dependency
config: powerpc-mpc83xx_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.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
git checkout 7eb951b5f72bd1a69007f417399a91f73b156898
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/powerpc/include/asm/dtl.h:4,
from arch/powerpc/kernel/time.c:72:
> arch/powerpc/include/asm/lppaca.h:145:14: error:
'SLB_NUM_BOLTED' undeclared here (not in a function)
145 | }
save_area[SLB_NUM_BOLTED];
| ^~~~~~~~~~~~~~
vim +/SLB_NUM_BOLTED +145 arch/powerpc/include/asm/lppaca.h
f13c13a005127b arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 132
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 133 /*
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 134 * SLB
shadow buffer structure as defined in the PAPR. The save_area
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 135 *
contains adjacent ESID and VSID pairs for each shadowed SLB. The
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 136 * ESID
is stored in the lower 64bits, then the VSID.
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 137 */
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 138 struct
slb_shadow {
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 139
__be32 persistent; /* Number of persistent SLBs */
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 140
__be32 buffer_length; /* Total shadow buffer length */
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 141
__be64 reserved;
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 142
struct {
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 143 __be64
esid;
c72cd555e828b7 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2013-08-07 144
__be64 vsid;
59c19cb2f6a792 arch/powerpc/include/asm/lppaca.h Anton Blanchard 2012-04-10 @145 }
save_area[SLB_NUM_BOLTED];
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 146 }
____cacheline_aligned;
2f6093c84730b4 include/asm-powerpc/lppaca.h Michael Neuling 2006-08-07 147
:::::: The code at line 145 was first introduced by commit
:::::: 59c19cb2f6a7928a2fd3afd22bfe988e025b41d8 powerpc: Reformat lppaca.h
:::::: TO: Anton Blanchard <anton(a)samba.org>
:::::: CC: Benjamin Herrenschmidt <benh(a)kernel.crashing.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org