dma-mapping: provide a fallback dma_default_coherent
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sat, 1 Apr 2023 09:15:29 +0000 (10:15 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 7 Apr 2023 05:38:20 +0000 (07:38 +0200)
commitfe4e5efa401fe15eab9259e358730145449e83a2
tree6d67262fc05ca9030659eeb1d31e63223f995858
parentb31507dcaf3566d8ec3bdbf9922d8d5748b08a0f
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>
include/linux/dma-map-ops.h
kernel/dma/mapping.c