# Re: \[PATCH v2\] powerpc: iommu: fix build when neither PCI or IBMVIO is set

- From: Michael Ellerman \<hidden\>
- Date: 2021-04-10 14:29:47 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/04/6334064
- Thread: https://ratatoskr.run/linuxppc-dev/2021/04/6326201/t.md

```text
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
```
