]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: ccp - Include DMA declarations explicitly
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 2 Aug 2019 23:20:11 +0000 (18:20 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2019 05:12:04 +0000 (15:12 +1000)
commitf6b0b78a5c6c198b31967bfc2c7d17150980a0f6
tree3d4ae020d72d39dca02d7d6d817ba2c85ef7f066
parent2229c74079285c8f99754450e56d4d9814558e57
crypto: ccp - Include DMA declarations explicitly

ccp-dev.h uses dma_direction, which is defined in linux/dma-direction.h.
Include that explicitly instead of relying on it being included via
linux/pci.h, since ccp-dev.h requires nothing else from linux/pci.h.

Similarly, ccp-dmaengine.c uses dma_get_mask(), which is defined in
linux/dma-mapping.h, so include that explicitly since it requires nothing
else from linux/pci.h.

A future patch will remove the includes of linux/pci.h where it is not
needed.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-dmaengine.c