Content-Type: multipart/mixed; boundary="===============7704893993340626137==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 4/4] dmaengine: idxd: Use DMA API for in-kernel DMA with PASID Date: Thu, 09 Dec 2021 02:37:17 +0800 Message-ID: <202112090231.mEK0hpuw-lkp@intel.com> In-Reply-To: <1638884834-83028-5-git-send-email-jacob.jun.pan@linux.intel.com> List-Id: --===============7704893993340626137== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Jacob, I love your patch! Yet something to improve: [auto build test ERROR on joro-iommu/next] [also build test ERROR on vkoul-dmaengine/next linux/master linus/master v5= .16-rc4 next-20211208] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Jacob-Pan/Enable-PASID-for= -DMA-API-users/20211208-063637 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: x86_64-randconfig-a013-20211208 (https://download.01.org/0day-ci/ar= chive/20211209/202112090231.mEK0hpuw-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/018108bcd08fc145526791870= b4b58edeecfca1e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jacob-Pan/Enable-PASID-for-DMA-API= -users/20211208-063637 git checkout 018108bcd08fc145526791870b4b58edeecfca1e # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash drivers/dm= a/idxd/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/dma/idxd/init.c: In function 'idxd_enable_system_pasid': >> drivers/dma/idxd/init.c:532:10: error: implicit declaration of function = 'iommu_enable_pasid_dma'; did you mean 'iommu_enable_nesting'? [-Werror=3Di= mplicit-function-declaration] 532 | pasid =3D iommu_enable_pasid_dma(&idxd->pdev->dev); | ^~~~~~~~~~~~~~~~~~~~~~ | iommu_enable_nesting drivers/dma/idxd/init.c: In function 'idxd_disable_system_pasid': >> drivers/dma/idxd/init.c:544:2: error: implicit declaration of function '= iommu_disable_pasid_dma' [-Werror=3Dimplicit-function-declaration] 544 | iommu_disable_pasid_dma(&idxd->pdev->dev); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +532 drivers/dma/idxd/init.c 527 = 528 static int idxd_enable_system_pasid(struct idxd_device *idxd) 529 { 530 u32 pasid; 531 = > 532 pasid =3D iommu_enable_pasid_dma(&idxd->pdev->dev); 533 if (pasid =3D=3D INVALID_IOASID) { 534 dev_err(&idxd->pdev->dev, "No kernel DMA PASID\n"); 535 return -ENODEV; 536 } 537 idxd->pasid =3D pasid; 538 = 539 return 0; 540 } 541 = 542 static void idxd_disable_system_pasid(struct idxd_device *idxd) 543 { > 544 iommu_disable_pasid_dma(&idxd->pdev->dev); 545 idxd->pasid =3D 0; 546 } 547 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7704893993340626137==--