diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2023-04-01 12:15:30 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-04-07 08:38:25 +0300 |
commit | 1d3f56b295302fdb4ac9caf6ce09f5ae7d2e651a (patch) | |
tree | de643e9f75d7b28e2fd1288e64b47f7cb76fb2ae /kernel/dma/mapping.c | |
parent | fe4e5efa401fe15eab9259e358730145449e83a2 (diff) | |
download | linux-1d3f56b295302fdb4ac9caf6ce09f5ae7d2e651a.tar.xz |
dma-mapping: provide CONFIG_ARCH_DMA_DEFAULT_COHERENT
Provide a kconfig option to allow arches to manipulate default
value of dma_default_coherent in Kconfig.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma/mapping.c')
-rw-r--r-- | kernel/dma/mapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/mapping.c b/kernel/dma/mapping.c index 80f9663ffe26..9a4db5cce600 100644 --- a/kernel/dma/mapping.c +++ b/kernel/dma/mapping.c @@ -20,7 +20,7 @@ #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \ defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || \ defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL) -bool dma_default_coherent; +bool dma_default_coherent = IS_ENABLED(CONFIG_ARCH_DMA_DEFAULT_COHERENT); #endif /* |