tree:
https://github.com/Villemoes/linux ppc-inline
head: c5c9f702825a88a83d986fa6f21f3eef911bc094
commit: 63f750d2dad4f52b1999c92e2df28b3fee25a3ed [1/5] asm-generic: move pcu_iounmap from
iomap.h to pci_iomap.h
config: riscv-defconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.4.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 63f750d2dad4f52b1999c92e2df28b3fee25a3ed
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/riscv/include/asm/io.h:280:0,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/icmpv6.h:5,
from include/linux/ipv6.h:86,
from include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfs/client.c:19:
> include/asm-generic/io.h:895:21: error: static declaration of
'pci_iounmap' follows non-static declaration
#define pci_iounmap
pci_iounmap
^
> include/asm-generic/io.h:896:20: note: in expansion of macro
'pci_iounmap'
static inline void pci_iounmap(struct pci_dev *dev, void
__iomem *p)
^~~~~~~~~~~
In file included from include/asm-generic/io.h:19:0,
from arch/riscv/include/asm/io.h:280,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/icmpv6.h:5,
from include/linux/ipv6.h:86,
from include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfs/client.c:19:
include/asm-generic/pci_iomap.h:22:13: note: previous declaration of
'pci_iounmap' was here
extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
^~~~~~~~~~~
vim +/pci_iounmap +895 include/asm-generic/io.h
cd24834130ac65 Jan Glauber 2012-11-29 893
cd24834130ac65 Jan Glauber 2012-11-29 894 #ifndef pci_iounmap
9216efafc52ff9 Thierry Reding 2014-10-01 @895 #define pci_iounmap pci_iounmap
3f7e212df82ca0 Arnd Bergmann 2009-05-13 @896 static inline void pci_iounmap(struct
pci_dev *dev, void __iomem *p)
3f7e212df82ca0 Arnd Bergmann 2009-05-13 897 {
3f7e212df82ca0 Arnd Bergmann 2009-05-13 898 }
cd24834130ac65 Jan Glauber 2012-11-29 899 #endif
3f7e212df82ca0 Arnd Bergmann 2009-05-13 900 #endif /* CONFIG_GENERIC_IOMAP */
3f7e212df82ca0 Arnd Bergmann 2009-05-13 901
:::::: The code at line 895 was first introduced by commit
:::::: 9216efafc52ff99e9351ef60de5fcafc2bc8adb6 asm-generic/io.h: Reconcile I/O accessor
overrides
:::::: TO: Thierry Reding <treding(a)nvidia.com>
:::::: CC: Thierry Reding <treding(a)nvidia.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation