summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2016-02-13 17:13:50 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2016-02-15 16:13:13 +0100
commit13c2d549e529c0557434ebf78a5167c5e65caf6d (patch)
tree9be45f667933187b906e4b5e0c1da370bf654832
parent1314e5e2f85a4e5bca07532db07c6804ab85b26b (diff)
backports: fix bool logic in BPAUTO_BUILD_DMA_SHARED_HELPERS
This option should only be activated when HAVE_GENERIC_DMA_COHERENT is not set on kernel < 3.8. Kernel 3.9 includes this function unconditionally when HSA_DMA is set, on older kernel versions this depends on HAVE_GENERIC_DMA_COHERENT Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/compat/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig
index 7c88729c..07084d2f 100644
--- a/backport/compat/Kconfig
+++ b/backport/compat/Kconfig
@@ -81,7 +81,7 @@ config BPAUTO_BUILD_DMA_SHARED_HELPERS
depends on HAS_DMA
# Build on other kernels kernels < 3.9 if HAVE_GENERIC_DMA_COHERENT is
# not set. Kernels >= 3.8 have this if HAS_DMA is set.
- depends on (!HAVE_GENERIC_DMA_COHERENT || KERNEL_3_9)
+ depends on (!HAVE_GENERIC_DMA_COHERENT && KERNEL_3_8)
# Always build if on 3.3 - 3.5
default y if (KERNEL_3_4 || KERNEL_3_5 || KERNEL_3_6)
# build for testing