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

2021-03-06 Thread Randy Dunlap
On March 2, 2021 3:08:43 AM PST, Michael Ellerman wrote: >Randy Dunlap writes: >> When neither CONFIG_PCI nor CONFIG_IBMVIO is enabled: >> >> ../arch/powerpc/kernel/iommu.c:178:30: error: >'fail_iommu_bus_notifier' defined but not used >[-Werror=unused-variable] >> 178 | static struct

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

2021-03-02 Thread Michael Ellerman
Randy Dunlap writes: > When neither CONFIG_PCI nor CONFIG_IBMVIO is enabled: > > ../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 = { > > If only that struct is

[PATCH] powerpc: iommu: fix build when neither PCI or IBMVIO is set

2021-03-02 Thread Randy Dunlap
When neither CONFIG_PCI nor CONFIG_IBMVIO is enabled: ../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 = { If only that struct is bounded by 2 #if defined() phrases