Re: [PATCH 2/2] iommu/s390: Add support for iommu_device handling

From: kbuild test robot
Date: Fri Apr 28 2017 - 19:03:12 EST


Hi Joerg,

[auto build test ERROR on s390/features]
[also build test ERROR on v4.11-rc8 next-20170428]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-s390-Fix-iommu-groups-and-add-sysfs-support/20170429-003440
base: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
config: s390-allmodconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=s390

All errors (new ones prefixed by >>):

In file included from include/linux/pci.h:1627:0,
from include/trace/events/iommu.h:14,
from include/linux/iommu.h:27,
from drivers/s390/cio/vfio_ccw_cp.c:12:
>> arch/s390/include/asm/pci.h:127:22: error: field 'iommu_dev' has incomplete type
struct iommu_device iommu_dev; /* IOMMU core handle */
^~~~~~~~~

vim +/iommu_dev +127 arch/s390/include/asm/pci.h

121 unsigned long *iommu_bitmap;
122 unsigned long *lazy_bitmap;
123 unsigned long iommu_size;
124 unsigned long iommu_pages;
125 unsigned int next_bit;
126
> 127 struct iommu_device iommu_dev; /* IOMMU core handle */
128 struct iommu_group *group; /* IOMMU group for all devices behind this zdev */
129
130 char res_name[16];

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip