* [linux-next:master 7039/7280] include/linux/mfd/tmio.h:21:37: error: implicit declaration of function 'writesw'; did you mean
@ 2020-11-20 10:42 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-20 10:42 UTC (permalink / raw)
To: Miquel Raynal; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 4077 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 95065cb54210eba86bed10cb2118041524d54573
commit: 4939ba4aa4adfa7f118c5f6440d46f69359f34a8 [7039/7280] mtd: rawnand: tmio: Allow compile testing
config: alpha-allmodconfig (attached as .config)
compiler: alpha-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4939ba4aa4adfa7f118c5f6440d46f69359f34a8
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 4939ba4aa4adfa7f118c5f6440d46f69359f34a8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
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 >>):
In file included from drivers/mtd/nand/raw/tmio_nand.c:30:
drivers/mtd/nand/raw/tmio_nand.c: In function 'tmio_nand_write_buf':
>> include/linux/mfd/tmio.h:21:37: error: implicit declaration of function 'writesw'; did you mean 'writew'? [-Werror=implicit-function-declaration]
21 | #define tmio_iowrite16_rep(r, b, l) writesw(r, b, l)
| ^~~~~~~
drivers/mtd/nand/raw/tmio_nand.c:247:2: note: in expansion of macro 'tmio_iowrite16_rep'
247 | tmio_iowrite16_rep(tmio->fcr + FCR_DATA, buf, len >> 1);
| ^~~~~~~~~~~~~~~~~~
drivers/mtd/nand/raw/tmio_nand.c: In function 'tmio_nand_read_buf':
>> include/linux/mfd/tmio.h:15:36: error: implicit declaration of function 'readsw'; did you mean 'readw'? [-Werror=implicit-function-declaration]
15 | #define tmio_ioread16_rep(r, b, l) readsw(r, b, l)
| ^~~~~~
drivers/mtd/nand/raw/tmio_nand.c:254:2: note: in expansion of macro 'tmio_ioread16_rep'
254 | tmio_ioread16_rep(tmio->fcr + FCR_DATA, buf, len >> 1);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +21 include/linux/mfd/tmio.h
b53cde3557b8f97 Dmitry Eremin-Solenikov 2008-10-15 12
d3a2f71853ce543 Ian Molton 2008-07-31 13 #define tmio_ioread8(addr) readb(addr)
d3a2f71853ce543 Ian Molton 2008-07-31 14 #define tmio_ioread16(addr) readw(addr)
d3a2f71853ce543 Ian Molton 2008-07-31 @15 #define tmio_ioread16_rep(r, b, l) readsw(r, b, l)
d3a2f71853ce543 Ian Molton 2008-07-31 16 #define tmio_ioread32(addr) \
d3a2f71853ce543 Ian Molton 2008-07-31 17 (((u32)readw((addr))) | (((u32)readw((addr) + 2)) << 16))
d3a2f71853ce543 Ian Molton 2008-07-31 18
d3a2f71853ce543 Ian Molton 2008-07-31 19 #define tmio_iowrite8(val, addr) writeb((val), (addr))
d3a2f71853ce543 Ian Molton 2008-07-31 20 #define tmio_iowrite16(val, addr) writew((val), (addr))
d3a2f71853ce543 Ian Molton 2008-07-31 @21 #define tmio_iowrite16_rep(r, b, l) writesw(r, b, l)
d3a2f71853ce543 Ian Molton 2008-07-31 22 #define tmio_iowrite32(val, addr) \
d3a2f71853ce543 Ian Molton 2008-07-31 23 do { \
d3a2f71853ce543 Ian Molton 2008-07-31 24 writew((val), (addr)); \
d3a2f71853ce543 Ian Molton 2008-07-31 25 writew((val) >> 16, (addr) + 2); \
d3a2f71853ce543 Ian Molton 2008-07-31 26 } while (0)
d3a2f71853ce543 Ian Molton 2008-07-31 27
:::::: The code at line 21 was first introduced by commit
:::::: d3a2f71853ce543c5515d4982e202751e15b0b6d mfd: TMIO MMC structures and accessors.
:::::: TO: Ian Molton <spyro@f2s.com>
:::::: CC: Samuel Ortiz <sameo@openedhand.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 66584 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-20 10:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 10:42 [linux-next:master 7039/7280] include/linux/mfd/tmio.h:21:37: error: implicit declaration of function 'writesw'; did you mean kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).