]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/P2PDMA: Fix build without DMA ops
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Aug 2020 12:48:43 +0000 (14:48 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Aug 2020 22:08:21 +0000 (17:08 -0500)
commit8abc48ce2f6e749ec703aa439d9312b91d28dee2
treeb420a25186ab87fa1f8873a4db26f871aba55db1
parentdd44bddf04c5fd83529b139fbfac0a5372c1a87d
PCI/P2PDMA: Fix build without DMA ops

My commit to make DMA ops support optional missed the reference in
the p2pdma code.  And while the build bot didn't manage to find a config
where this can happen, Matthew did.  Fix this by replacing two IS_ENABLED
checks with ifdefs.

Fixes: 4bf551ad5558 ("dma-mapping: make support for dma ops optional")
Link: https://lore.kernel.org/r/20200810124843.1532738-1-hch@lst.de
Reported-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
drivers/pci/p2pdma.c