compat: add missing header includes for DMA backports
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Sat, 13 Apr 2013 14:13:39 +0000 (07:13 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 13 Apr 2013 20:56:19 +0000 (22:56 +0200)
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/compat/compat-3.6.c
backport/include/linux/compat-3.6.h

index 5355cd220da1a454c244468e9f915ddab42fa263..1e4480b00e8d02edaad160a35554903b1eb24156 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/i2c.h>
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
+#include <linux/dma-attrs.h>
 /*
  * Create scatter-list for the already allocated DMA buffer.
  */
index ccc43a2ea333c2cc7432fe9ed887b2113c5d224b..f2c1a9098e82f79d0b7319628bac982fae095ed6 100644 (file)
@@ -9,6 +9,7 @@
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
 #include <linux/i2c.h>
+#include <linux/dma-attrs.h>
 /* Unlocked flavor */
 #define __i2c_transfer LINUX_BACKPORT(__i2c_transfer)
 extern int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs,