[tip:WIP.sched/core 104/122] arch/powerpc/kernel/swsusp_64.c:17:2: error: implicit declaration of function 'touch_softlockup_watchdog'

From: kbuild test robot
Date: Thu Feb 02 2017 - 18:56:04 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: 370156b19d7226a19a04691d550ee5121847abcd [104/122] sched/headers, softlockup: Move softlockup detector watchdog methods to <linux/nmi.h>
config: powerpc-allmodconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 370156b19d7226a19a04691d550ee5121847abcd
# save the attached .config to linux build tree
make.cross ARCH=powerpc

All errors (new ones prefixed by >>):

arch/powerpc/kernel/swsusp_64.c: In function 'do_after_copyback':
>> arch/powerpc/kernel/swsusp_64.c:17:2: error: implicit declaration of function 'touch_softlockup_watchdog' [-Werror=implicit-function-declaration]
touch_softlockup_watchdog();
^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/touch_softlockup_watchdog +17 arch/powerpc/kernel/swsusp_64.c

62fe91bb Paul Gortmaker 2011-05-27 11 #include <linux/sched.h>
543b9fd3 Johannes Berg 2007-05-03 12 #include <linux/interrupt.h>
543b9fd3 Johannes Berg 2007-05-03 13
543b9fd3 Johannes Berg 2007-05-03 14 void do_after_copyback(void)
543b9fd3 Johannes Berg 2007-05-03 15 {
543b9fd3 Johannes Berg 2007-05-03 16 iommu_restore();
543b9fd3 Johannes Berg 2007-05-03 @17 touch_softlockup_watchdog();
543b9fd3 Johannes Berg 2007-05-03 18 mb();
543b9fd3 Johannes Berg 2007-05-03 19 }
543b9fd3 Johannes Berg 2007-05-03 20

:::::: The code at line 17 was first introduced by commit
:::::: 543b9fd3528f64c4b20439de0edb453764482de7 [POWERPC] powermac: Suspend to disk on G5

:::::: TO: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
:::::: CC: Paul Mackerras <paulus@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip