• Michael Ellerman's avatar
    powerpc/pci: Fix build with PCI_IOV=y and EEH=n · d468fcaf
    Michael Ellerman authored
    Despite attempting to fix this in commit fb36e907 ("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: default avatarMichael Ellerman <mpe@ellerman.id.au>
    d468fcaf
pci_dn.c 12.8 KB