tree:
https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git mips-next
head: d41afc398fbc9dfb8c40b951e97a7f0283346c6a
commit: 95b1f6db67aea9135b018497f7ed4446a060cba2 [41/54] MIPS: cpu-probe: Set
Ingenic's writecombine to _CACHE_CACHABLE_WA
config: mips-jmr3927_defconfig (attached as .config)
compiler: mips-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 95b1f6db67aea9135b018497f7ed4446a060cba2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
In file included from arch/mips/include/asm/io.h:30,
from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:61,
from include/linux/wait.h:9,
from include/linux/pid.h:6,
from include/linux/sched.h:14,
from include/linux/ptrace.h:6,
from arch/mips/kernel/cpu-probe.c:12:
arch/mips/kernel/cpu-probe.c: In function 'cpu_probe_ingenic':
> arch/mips/include/asm/pgtable-bits.h:258:33: error:
'_CACHE_SHIFT' undeclared (first use in this function); did you mean
'L1_CACHE_SHIFT'?
258 | #define _CACHE_CACHABLE_WA
(1<<_CACHE_SHIFT)
| ^~~~~~~~~~~~
arch/mips/kernel/cpu-probe.c:2173:21: note: in expansion of macro
'_CACHE_CACHABLE_WA'
2173 | c->writecombine = _CACHE_CACHABLE_WA;
| ^~~~~~~~~~~~~~~~~~
arch/mips/include/asm/pgtable-bits.h:258:33: note: each undeclared identifier is
reported only once for each function it appears in
258 | #define _CACHE_CACHABLE_WA (1<<_CACHE_SHIFT)
| ^~~~~~~~~~~~
arch/mips/kernel/cpu-probe.c:2173:21: note: in expansion of macro
'_CACHE_CACHABLE_WA'
2173 | c->writecombine = _CACHE_CACHABLE_WA;
| ^~~~~~~~~~~~~~~~~~
#
https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/commit/?id...
git remote add mips-linux
https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git
git fetch --no-tags mips-linux mips-next
git checkout 95b1f6db67aea9135b018497f7ed4446a060cba2
vim +258 arch/mips/include/asm/pgtable-bits.h
^1da177e4c3f41 include/asm-mips/pgtable-bits.h Linus Torvalds 2005-04-16 253
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 254
#ifndef _CACHE_CACHABLE_NO_WA
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 255
#define _CACHE_CACHABLE_NO_WA (0<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 256
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 257
#ifndef _CACHE_CACHABLE_WA
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 @258
#define _CACHE_CACHABLE_WA (1<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 259
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 260
#ifndef _CACHE_UNCACHED
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 261
#define _CACHE_UNCACHED (2<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 262
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 263
#ifndef _CACHE_CACHABLE_NONCOHERENT
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 264
#define _CACHE_CACHABLE_NONCOHERENT (3<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 265
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 266
#ifndef _CACHE_CACHABLE_CE
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 267
#define _CACHE_CACHABLE_CE (4<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 268
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 269
#ifndef _CACHE_CACHABLE_COW
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 270
#define _CACHE_CACHABLE_COW (5<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 271
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 272
#ifndef _CACHE_CACHABLE_CUW
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 273
#define _CACHE_CACHABLE_CUW (6<<_CACHE_SHIFT)
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 274
#endif
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 275
#ifndef _CACHE_UNCACHED_ACCELERATED
fb02035083d9e2 arch/mips/include/asm/pgtable-bits.h Markos Chandras 2014-07-18 276
#define _CACHE_UNCACHED_ACCELERATED (7<<_CACHE_SHIFT)
^1da177e4c3f41 include/asm-mips/pgtable-bits.h Linus Torvalds 2005-04-16 277
#endif
^1da177e4c3f41 include/asm-mips/pgtable-bits.h Linus Torvalds 2005-04-16 278
:::::: The code at line 258 was first introduced by commit
:::::: fb02035083d9e2de1deba529b45835a698944f07 MIPS: pgtable-bits: Move the CCA bits out
of the core's ifdef blocks
:::::: TO: Markos Chandras <markos.chandras(a)imgtec.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org