[PATCH 10/12] backports: fix bool logic in BPAUTO_BUILD_DMA_SHARED_HELPERS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 backport/compat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig
index 7c88729..07084d2 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
-- 
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux