Thread (6 messages) flat view 6 messages, 3 authors, 2020-07-20

Re: [PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

From: "Oliver O'Halloran" <oohall@gmail.com>
Date: 2020-06-15 01:40:49
Also in: lkml

On Mon, Jun 15, 2020 at 9:33 AM Greg Thelen [off-list ref] wrote:
Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE
configuration") removed a couple pnv_ioda_setup_bus_dma() calls.  The
only remaining calls are behind CONFIG_IOMMU_API.  Thus builds without
CONFIG_IOMMU_API see:
  arch/powerpc/platforms/powernv/pci-ioda.c:1888:13: error: 'pnv_ioda_setup_bus_dma' defined but not used

Move pnv_ioda_setup_bus_dma() under CONFIG_IOMMU_API to avoid dead code.
Doh! Thanks for the fix.

Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help