* [thierryreding:for-5.13/work 21/59] drivers/tty/serial/tegra-tcu.c:311:10: error: implicit declaration of function 'readl'
@ 2021-05-07 2:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-07 2:27 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]
tree: https://github.com/thierryreding/linux for-5.13/work
head: 6faf2d6934c70d1786de0e373d178559f6eae8db
commit: 1c62098a5805d605d22a2468ec3aaeecf53f0c67 [21/59] tty: serial: tegra-tcu: Add earlycon support
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/thierryreding/linux/commit/1c62098a5805d605d22a2468ec3aaeecf53f0c67
git remote add thierryreding https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.13/work
git checkout 1c62098a5805d605d22a2468ec3aaeecf53f0c67
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/tty/serial/tegra-tcu.c: In function 'update_and_send_mbox':
>> drivers/tty/serial/tegra-tcu.c:311:10: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
311 | while (readl(addr) & TCU_MBOX_FULL)
| ^~~~~
>> drivers/tty/serial/tegra-tcu.c:314:3: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
314 | writel(value, addr);
| ^~~~~~
cc1: some warnings being treated as errors
vim +/readl +311 drivers/tty/serial/tegra-tcu.c
297
298 static u32 update_and_send_mbox(u8 __iomem *addr, u32 value, char c)
299 {
300 unsigned int bytes = TCU_MBOX_NUM_BYTES_V(value);
301
302 value |= TCU_MBOX_FULL;
303 value |= c << (bytes * 8);
304 bytes++;
305
306 value &= ~TCU_MBOX_NUM_BYTES(3);
307 value |= TCU_MBOX_NUM_BYTES(bytes);
308
309 if (bytes == 3) {
310 /* Send current packet to SPE */
> 311 while (readl(addr) & TCU_MBOX_FULL)
312 cpu_relax();
313
> 314 writel(value, addr);
315 value = TCU_MBOX_FULL;
316 }
317
318 return value;
319 }
320
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 66705 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-07 2:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 2:27 [thierryreding:for-5.13/work 21/59] drivers/tty/serial/tegra-tcu.c:311:10: error: implicit declaration of function 'readl' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.