Hi Joerg,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc6]
[cannot apply to iommu/next next-20170203]
[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/Let-IOMMU-core-know-about-individual-IOMMUs/20170203-232949
config: x86_64-randconfig-h0-02040037 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from drivers/iommu/dmar.c:34:0:
   include/linux/intel-iommu.h:444:22: error: field 'iommu' has incomplete type
     struct iommu_device iommu;  /* IOMMU core code handle */
                         ^
   drivers/iommu/dmar.c: In function 'alloc_iommu':
>> drivers/iommu/dmar.c:1094:3: error: implicit declaration of function 
>> 'iommu_device_register' [-Werror=implicit-function-declaration]
      err = iommu_device_register(&iommu->iommu);
      ^
   drivers/iommu/dmar.c: In function 'free_iommu':
>> drivers/iommu/dmar.c:1115:2: error: implicit declaration of function 
>> 'iommu_device_unregister' [-Werror=implicit-function-declaration]
     iommu_device_unregister(&iommu->iommu);
     ^
   cc1: some warnings being treated as errors

vim +/iommu_device_register +1094 drivers/iommu/dmar.c

  1088                          err = PTR_ERR(iommu->iommu_dev);
  1089                          goto err_unmap;
  1090                  }
  1091  
  1092                  iommu->iommu.ops = &intel_iommu_ops;
  1093  
> 1094                  err = iommu_device_register(&iommu->iommu);
  1095                  if (err)
  1096                          goto err_unmap;
  1097          }
  1098  
  1099          drhd->iommu = iommu;
  1100  
  1101          return 0;
  1102  
  1103  err_unmap:
  1104          unmap_iommu(iommu);
  1105  error_free_seq_id:
  1106          dmar_free_seq_id(iommu);
  1107  error:
  1108          kfree(iommu);
  1109          return err;
  1110  }
  1111  
  1112  static void free_iommu(struct intel_iommu *iommu)
  1113  {
  1114          iommu_device_destroy(iommu->iommu_dev);
> 1115          iommu_device_unregister(&iommu->iommu);
  1116  
  1117          if (iommu->irq) {
  1118                  if (iommu->pr_irq) {

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to