]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Fix SRIOV not building without EEH enabled
authorRussell Currey <ruscur@russell.cc>
Fri, 17 Jun 2016 05:25:17 +0000 (15:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Jun 2016 06:52:22 +0000 (16:52 +1000)
commite5ab890c534d3774290364b5fb612060093297ff
treef025278d36beeb21435d0819c46bbbf00c6ca694
parent61ea05cb0cb51ec427575ac2d73e37de85aa5b67
powerpc/pci: Fix SRIOV not building without EEH enabled

On Book3E CPUs (and possibly other configs), it is possible to have SRIOV
(CONFIG_PCI_IOV) set without CONFIG_EEH.  The SRIOV code does not check
for this, and if EEH is disabled, pci_dn.c fails to build.

Fix this by gating the EEH-specific code in the SRIOV implementation
behind CONFIG_EEH.

Fixes: b1f926a4 ("powerpc/eeh: EEH device for VF")
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/pci_dn.c