iommu/amd: Fix compilation error
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Apr 2024 11:17:07 +0000 (14:17 +0300)
committerJoerg Roedel <jroedel@suse.de>
Fri, 3 May 2024 10:12:16 +0000 (12:12 +0200)
commitbbe1e78ae23e7e474401880d0d496acc8cec6863
tree88dac2807db29d33c1ba0d74ef7d869c1e65c12f
parent5dc72c8a146ddcfc568265c8088e90d8e996d340
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@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240429111707.2795194-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/Kconfig