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
Also in
lkml
Reply to
Randy Dunlap, 2021-04-04
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
Thread (4 messages) 4 messages, 3 authors, last reply 2021-04-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help