]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Fix build with PCI_IOV=y and EEH=n
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Jul 2016 04:07:07 +0000 (14:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 Jul 2016 06:33:27 +0000 (16:33 +1000)
commit6183c74f1f86c94ae02442f8c674c1e8dbcb9f10
treec2b3098197162d2a9d252ea3beb258348ad2b272
parentc9b37d9976ac30db67a9f404ab0d05dced47772d
powerpc/pci: Fix build with PCI_IOV=y and EEH=n

Despite attempting to fix this in commit 83dafb6ea3ad ("powerpc/pci: Fix
SRIOV not building without EEH enabled"), the build is still broken when
PCI_IOV=y and EEH=n (eg. g5_defconfig with PCI_IOV=y):

  arch/powerpc/kernel/pci_dn.c: In function ‘remove_dev_pci_data’:
  arch/powerpc/kernel/pci_dn.c:230:18: error: unused variable ‘edev’

Incorporate Ben's idea of using __maybe_unused to avoid so many #ifdefs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/pci_dn.c