Re: [PATCH v2 2/5] dma-mapping: Provide a fallback dma_default_coherent

2023-03-01 Thread Christoph Hellwig
On Thu, Feb 23, 2023 at 11:36:41AM +, Jiaxun Yang wrote: > 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. Overly lone line here. > } > #else > +#define dma_default_coherent true

[PATCH v2 2/5] dma-mapping: Provide a fallback dma_default_coherent

2023-02-23 Thread Jiaxun Yang
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 --- include/linu