[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240429111707.2795194-1-andriy.shevchenko@linux.intel.com>
Date: Mon, 29 Apr 2024 14:17:07 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Jason Gunthorpe <jgg@...pe.ca>,
Vasant Hegde <vasant.hegde@....com>,
iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev
Cc: Joerg Roedel <joro@...tes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [PATCH v1 1/1] iommu/amd: Fix compilation error
With WERROR=y, which is default, clang is not happy:
../amd/pasid.c:168:3: error: call to undeclared function 'mmu_notifier_unregister'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../amd/pasid.c:191:8: error: call to undeclared function 'mmu_notifier_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2 errors generated.
Select missed dependency.
Fixes: a5a91e54846d ("iommu/amd: Add SVA domain support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/iommu/amd/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/amd/Kconfig b/drivers/iommu/amd/Kconfig
index 68d8fc107cb9..994063e5586f 100644
--- a/drivers/iommu/amd/Kconfig
+++ b/drivers/iommu/amd/Kconfig
@@ -7,6 +7,7 @@ config AMD_IOMMU
select PCI_ATS
select PCI_PRI
select PCI_PASID
+ select MMU_NOTIFIER
select IOMMU_API
select IOMMU_IOVA
select IOMMU_IO_PGTABLE
--
2.43.0.rc1.1336.g36b5255a03ac
Powered by blists - more mailing lists