Skip to contentSkip to conversation

backports: fix BACKPORT_BUILD_DMA_SHARED_HELPERS 3.9 dependency

PATCH New Luis R. Rodriguez 1 participant 1 message Jul 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: fix BACKPORT_BUILD_DMA_SHARED_HELPERS 3.9 dependency

From: "Luis R. Rodriguez" <[email protected]>

The expression was reversed. Without this it compiles but the compat module will fail to load since a symbol dma_common_get_sgtable is already owned by the kernel.

This should be applied to the linux-3.11.y branch.

---
 backport/compat/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
backport/compat/Kconfig +1 -1
index 8377013..8d51b50 100644
@@ -170,7 +170,7 @@ config BACKPORT_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 || BACKPORT_KERNEL_3_9)
+	depends on !BACKPORT_KERNEL_3_9 && HAVE_GENERIC_DMA_COHERENT
 	# Always build if on 3.3 - 3.5
 	default y if (BACKPORT_KERNEL_3_4 || BACKPORT_KERNEL_3_5 || BACKPORT_KERNEL_3_6)
 	# build for testing
Signature · 1 line
1.7.10.4