[tip:smp/hotplug 43/44] kernel/tracepoint.c:253:4: error: implicit declaration of function 'static_key_slow_dec_cpuslocked'

From: kbuild test robot
Date: Sun Apr 23 2017 - 13:21:19 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug
head: 8b836972c33553d3ff70954af090debfc9dc84c6
commit: 24db7a671bd5eea76b17138b976eb9a4072f1b7a [43/44] trace/perf: Cure hotplug lock ordering issues
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 24db7a671bd5eea76b17138b976eb9a4072f1b7a
# save the attached .config to linux build tree
make.cross ARCH=blackfin

All errors (new ones prefixed by >>):

kernel/tracepoint.c: In function 'tracepoint_remove_func':
>> kernel/tracepoint.c:253:4: error: implicit declaration of function 'static_key_slow_dec_cpuslocked' [-Werror=implicit-function-declaration]
static_key_slow_dec_cpuslocked(&tp->key);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/static_key_slow_dec_cpuslocked +253 kernel/tracepoint.c

247 if (!tp_funcs) {
248 /* Removed last function */
249 if (tp->unregfunc && static_key_enabled(&tp->key))
250 tp->unregfunc();
251
252 if (static_key_enabled(&tp->key))
> 253 static_key_slow_dec_cpuslocked(&tp->key);
254 }
255 rcu_assign_pointer(tp->funcs, tp_funcs);
256 release_probes(old);

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

Attachment: .config.gz
Description: application/gzip