[PATCH v2] powerpc: iommu: fix build when neither PCI or IBMVIO is set
Michael Ellerman
patch-notifications at ellerman.id.au
Sun Apr 11 00:28:58 AEST 2021
On Sun, 4 Apr 2021 12:26:23 -0700, Randy Dunlap wrote:
> When neither CONFIG_PCI nor CONFIG_IBMVIO is set/enabled, iommu.c has a
> build error. The fault injection code is not useful in that kernel config,
> so make the FAIL_IOMMU option depend on PCI || IBMVIO.
>
> Prevents this build error (warning escalated to error):
> ../arch/powerpc/kernel/iommu.c:178:30: error: 'fail_iommu_bus_notifier' defined but not used [-Werror=unused-variable]
> 178 | static struct notifier_block fail_iommu_bus_notifier = {
Applied to powerpc/next.
[1/1] powerpc: iommu: fix build when neither PCI or IBMVIO is set
https://git.kernel.org/powerpc/c/b27dadecdf9102838331b9a0b41ffc1cfe288154
cheers
More information about the Linuxppc-dev
mailing list