[linux-next:master 8395/9390] drivers/iommu/amd/pasid.c:172:17: error: implicit declaration of function 'mmu_notifier_unregister'; did you mean 'mmu_notifier_release'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b0a2c79c6f3590b74742cbbc76687014d47972d8
commit: a5a91e54846d35c234939fb9170e035805353049 [8395/9390] iommu/amd: Add SVA domain support
config: x86_64-randconfig-x061-20230629 (https://download.01.org/0day-ci/archive/20240430/202404300543.z8m1DMGM-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240430/202404300543.z8m1DMGM-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404300543.z8m1DMGM-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/iommu/amd/pasid.c: In function 'iommu_sva_domain_free':
>> drivers/iommu/amd/pasid.c:172:17: error: implicit declaration of function 'mmu_notifier_unregister'; did you mean 'mmu_notifier_release'? [-Werror=implicit-function-declaration]
     172 |                 mmu_notifier_unregister(&sva_pdom->mn, domain->mm);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
         |                 mmu_notifier_release
   drivers/iommu/amd/pasid.c: In function 'amd_iommu_domain_alloc_sva':
>> drivers/iommu/amd/pasid.c:195:15: error: implicit declaration of function 'mmu_notifier_register'; did you mean 'mmu_notifier_release'? [-Werror=implicit-function-declaration]
     195 |         ret = mmu_notifier_register(&pdom->mn, mm);
         |               ^~~~~~~~~~~~~~~~~~~~~
         |               mmu_notifier_release
   cc1: some warnings being treated as errors


vim +172 drivers/iommu/amd/pasid.c

   166	
   167	static void iommu_sva_domain_free(struct iommu_domain *domain)
   168	{
   169		struct protection_domain *sva_pdom = to_pdomain(domain);
   170	
   171		if (sva_pdom->mn.ops)
 > 172			mmu_notifier_unregister(&sva_pdom->mn, domain->mm);
   173	
   174		amd_iommu_domain_free(domain);
   175	}
   176	
   177	static const struct iommu_domain_ops amd_sva_domain_ops = {
   178		.set_dev_pasid = iommu_sva_set_dev_pasid,
   179		.free	       = iommu_sva_domain_free
   180	};
   181	
   182	struct iommu_domain *amd_iommu_domain_alloc_sva(struct device *dev,
   183							struct mm_struct *mm)
   184	{
   185		struct protection_domain *pdom;
   186		int ret;
   187	
   188		pdom = protection_domain_alloc(IOMMU_DOMAIN_SVA);
   189		if (!pdom)
   190			return ERR_PTR(-ENOMEM);
   191	
   192		pdom->domain.ops = &amd_sva_domain_ops;
   193		pdom->mn.ops = &sva_mn;
   194	
 > 195		ret = mmu_notifier_register(&pdom->mn, mm);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux