[rcu:dev.2019.08.01a 57/113] drivers/base/core.c:102:9: error: implicit declaration of function 'lock_is_held'; did you mean 'clock_was_set'?

From: kbuild test robot
Date: Wed Aug 07 2019 - 12:48:59 EST


tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2019.08.01a
head: 00ec8f46465e07c72f2813cc346f6e7e8749ea98
commit: 24f1c2ad7b902c9ab867518b5258d4db70f28ec0 [57/113] acpi: Use built-in RCU list checking for acpi_ioremaps list
config: sparc64-allnoconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 24f1c2ad7b902c9ab867518b5258d4db70f28ec0
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64

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

All errors (new ones prefixed by >>):

drivers/base/core.c: In function 'device_links_read_lock_held':
>> drivers/base/core.c:102:9: error: implicit declaration of function 'lock_is_held'; did you mean 'clock_was_set'? [-Werror=implicit-function-declaration]
return lock_is_held(&device_links_lock);
^~~~~~~~~~~~
clock_was_set
cc1: some warnings being treated as errors

vim +102 drivers/base/core.c

99
100 int device_links_read_lock_held(void)
101 {
> 102 return lock_is_held(&device_links_lock);
103 }
104 #endif /* !CONFIG_SRCU */
105

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

Attachment: .config.gz
Description: application/gzip