Re: [PATCH v4 6/7] locking/lockdep: Reuse freed chain_hlocks entries

From: kbuild test robot
Date: Fri Jan 24 2020 - 06:57:44 EST


Hi Waiman,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/auto-latest arm-perf/for-next/perf v5.5-rc7 next-20200121]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Waiman-Long/locking-lockdep-Reuse-zapped-chain_hlocks-entries/20200124-085419
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git f5bfdc8e3947a7ae489cf8ae9cfd6b3fb357b952
config: xtensa-randconfig-a001-20200124 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=xtensa

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

All errors (new ones prefixed by >>):

kernel/locking/lockdep.o: In function `arch_local_irq_restore':
>> arch/xtensa/include/asm/irqflags.h:66: undefined reference to `init_chain_block_buckets'
kernel/locking/lockdep.o: In function `__lock_pin_lock':
kernel/locking/lockdep.c:4565: undefined reference to `init_chain_block_buckets'
kernel/locking/lockdep_proc.o: In function `l_stop':
kernel/locking/lockdep_proc.c:39: undefined reference to `nr_zapped_lock_chains'
>> kernel/locking/lockdep_proc.c:39: undefined reference to `nr_large_chain_blocks'

vim +66 arch/xtensa/include/asm/irqflags.h

df9ee29270c11d David Howells 2010-10-07 63
df9ee29270c11d David Howells 2010-10-07 64 static inline void arch_local_irq_restore(unsigned long flags)
df9ee29270c11d David Howells 2010-10-07 65 {
bc5378fcba9743 Max Filippov 2012-10-15 @66 asm volatile("wsr %0, ps; rsync"
df9ee29270c11d David Howells 2010-10-07 67 :: "a" (flags) : "memory");
df9ee29270c11d David Howells 2010-10-07 68 }
df9ee29270c11d David Howells 2010-10-07 69

:::::: The code at line 66 was first introduced by commit
:::::: bc5378fcba974317f9657c4fdc78af227e1e1068 xtensa: reorganize SR referencing

:::::: TO: Max Filippov <jcmvbkbc@xxxxxxxxx>
:::::: CC: Chris Zankel <chris@xxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip