drivers/watchdog/m54xx_wdt.c:49:9: error: implicit declaration of function '__raw_readl'
From: kbuild test robot
Date: Fri May 08 2020 - 13:44:55 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 79dede78c0573618e3137d3d8cbf78c84e25fabd
commit: 9e860351550b28901a78f122b1e2dc97f78ba369 m68knommu: Remove mm.h include from uaccess_no.h
date: 6 weeks ago
config: m68k-randconfig-r006-20200507 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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 9e860351550b28901a78f122b1e2dc97f78ba369
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
drivers/watchdog/m54xx_wdt.c: In function 'wdt_enable':
>> drivers/watchdog/m54xx_wdt.c:49:9: error: implicit declaration of function '__raw_readl' [-Werror=implicit-function-declaration]
49 | gms0 = __raw_readl(MCF_GPT_GMS0);
| ^~~~~~~~~~~
>> drivers/watchdog/m54xx_wdt.c:55:2: error: implicit declaration of function '__raw_writel'; did you mean '__raw_write_lock'? [-Werror=implicit-function-declaration]
55 | __raw_writel(gms0, MCF_GPT_GMS0);
| ^~~~~~~~~~~~
| __raw_write_lock
cc1: some warnings being treated as errors
vim +/__raw_readl +49 drivers/watchdog/m54xx_wdt.c
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 43
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 44 static void wdt_enable(void)
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 45 {
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 46 unsigned int gms0;
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 47
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 48 /* preserve GPIO usage, if any */
944c3d81dbead14 drivers/watchdog/m54xx_wdt.c Greg Ungerer 2012-09-18 @49 gms0 = __raw_readl(MCF_GPT_GMS0);
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 50 if (gms0 & MCF_GPT_GMS_TMS_GPIO)
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 51 gms0 &= (MCF_GPT_GMS_TMS_GPIO | MCF_GPT_GMS_GPIO_MASK
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 52 | MCF_GPT_GMS_OD);
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 53 else
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 54 gms0 = MCF_GPT_GMS_TMS_GPIO | MCF_GPT_GMS_OD;
944c3d81dbead14 drivers/watchdog/m54xx_wdt.c Greg Ungerer 2012-09-18 @55 __raw_writel(gms0, MCF_GPT_GMS0);
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 56 __raw_writel(MCF_GPT_GCIR_PRE(heartbeat*(MCF_BUSCLK/0xffff)) |
944c3d81dbead14 drivers/watchdog/m54xx_wdt.c Greg Ungerer 2012-09-18 57 MCF_GPT_GCIR_CNT(0xffff), MCF_GPT_GCIR0);
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 58 gms0 |= MCF_GPT_GMS_OCPW(0xA5) | MCF_GPT_GMS_WDEN | MCF_GPT_GMS_CE;
944c3d81dbead14 drivers/watchdog/m54xx_wdt.c Greg Ungerer 2012-09-18 59 __raw_writel(gms0, MCF_GPT_GMS0);
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 60 }
88cce427626070f drivers/watchdog/m548x_wdt.c Philippe De Muyter 2010-11-03 61
:::::: The code at line 49 was first introduced by commit
:::::: 944c3d81dbead14725e7d12675c37a2027760608 m68knommu: clean up ColdFire 54xx General Timer definitions
:::::: TO: Greg Ungerer <gerg@xxxxxxxxxxx>
:::::: CC: Greg Ungerer <gerg@xxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip