tree:
https://github.com/thierryreding/linux for-5.13/work
head: 009ea3ee74a12859073a37d2ef800fa154ff7705
commit: d006496f132a87d2a36130b1e3d7b471e530c459 [27/49] iommu: Add dummy
dev_iommu_fwspec_get() helper
config: nds32-defconfig (attached as .config)
compiler: nds32le-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/d006496f132a87d2a36130b1e3d...
git remote add thierryreding
https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.13/work
git checkout d006496f132a87d2a36130b1e3d7b471e530c459
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/of_iommu.h:6,
from drivers/of/device.c:7:
> include/linux/iommu.h:1064:36: error: redefinition of
'dev_iommu_fwspec_get'
1064 | static inline struct iommu_fwspec
*dev_iommu_fwspec_get(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/iommu.h:982:36: note: previous definition of
'dev_iommu_fwspec_get' was here
982 | static inline struct iommu_fwspec *dev_iommu_fwspec_get(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~
vim +/dev_iommu_fwspec_get +1064 include/linux/iommu.h
4c7c171f85b261 Yi L Liu 2019-10-02 1063
0008d0c3b1ab03 Joerg Roedel 2020-03-26 @1064 static inline struct iommu_fwspec
*dev_iommu_fwspec_get(struct device *dev)
0008d0c3b1ab03 Joerg Roedel 2020-03-26 1065 {
0008d0c3b1ab03 Joerg Roedel 2020-03-26 1066 return NULL;
0008d0c3b1ab03 Joerg Roedel 2020-03-26 1067 }
4a77a6cf6d9bf9 Joerg Roedel 2008-11-26 1068 #endif /* CONFIG_IOMMU_API */
4a77a6cf6d9bf9 Joerg Roedel 2008-11-26 1069
:::::: The code at line 1064 was first introduced by commit
:::::: 0008d0c3b1ab03b046b04b7bd9d70df1e2fffbfc iommu: Define dev_iommu_fwspec_get() for
!CONFIG_IOMMU_API
:::::: TO: Joerg Roedel <jroedel(a)suse.de>
:::::: CC: Joerg Roedel <jroedel(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org