dma-mapping: provide a fallback dma_default_coherent

dma_default_coherent was decleared unconditionally at kernel/dma/mapping.c
but only decleared when any of non-coherent options is enabled in
dma-map-ops.h.

Guard the declaration in mapping.c with non-coherent options and provide
a fallback definition.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Jiaxun Yang 2023-04-01 10:15:29 +01:00 • committed by Christoph Hellwig
commit fe4e5efa40
2 changed files with 6 additions and 0 deletions