Skip to content

Instantly share code, notes, and snippets.

@mcgrof
Created April 2, 2013 22:04
Show Gist options
  • Save mcgrof/5296638 to your computer and use it in GitHub Desktop.
Save mcgrof/5296638 to your computer and use it in GitHub Desktop.
su madre en tanga roja
diff --git a/backport/compat/Kconfig b/backport/compat/Kconfig
index 5a9b303..165e940 100644
--- a/backport/compat/Kconfig
+++ b/backport/compat/Kconfig
@@ -107,7 +107,12 @@ config BACKPORT_OPTION_USB_URB_THREAD_FIX
config BACKPORT_MII
bool
-
+config BACKPORT_BUILD_DMA_BUF
+ def_bool y
+ depends on ANON_INODES
+ depends on !BACKPORT_KERNEL_3_0
+ default n if DMA_SHARED_BUFFER && !BACKPORT_KERNEL_3_5
+ default y if BACKPORT_USERSEL_BUILD_ALL
config BACKPORT_USERSEL_BUILD_ALL
bool "Build all compat code"
diff --git a/backport/compat/Makefile b/backport/compat/Makefile
index 62dd531..de1e645 100644
--- a/backport/compat/Makefile
+++ b/backport/compat/Makefile
@@ -14,6 +14,7 @@ obj-$(CPTCFG_BACKPORT_USERSEL_NET_SCH_FQ_CODEL) += sch_fq_codel.o
obj-$(CPTCFG_BACKPORT_BUILD_CORDIC) += cordic.o
obj-$(CPTCFG_BACKPORT_BUILD_CRC8) += crc8.o
+obj-$(CPTCFG_BACKPORT_BUILD_DMA_BUF) += dma-buf.o
# Compat kernel compatibility code
compat-$(CPTCFG_BACKPORT_KERNEL_2_6_14) += compat-2.6.14.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment