backports: fix dma-buf backport patch
authorJohannes Berg <johannes.berg@intel.com>
Fri, 12 Apr 2013 23:23:31 +0000 (01:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2013 09:32:45 +0000 (11:32 +0200)
The patched backported dma-buf code uses the "current" macro
to determine task information, so it needs to include sched.h.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
patches/backport-adjustments/dma-buf.patch

index 06ed9f6516542ff3ae52dc2822ea08af5107db3d..789a1083ef94a3ca984b2a6ee5615d51fb5204b1 100644 (file)
@@ -1,12 +1,13 @@
 --- a/compat/drivers-base-dma-buf.c
 +++ b/compat/drivers-base-dma-buf.c
-@@ -27,6 +27,9 @@
+@@ -27,6 +27,10 @@
  #include <linux/dma-buf.h>
  #include <linux/anon_inodes.h>
  #include <linux/export.h>
 +#include <linux/file.h>
 +#include <linux/fdtable.h>
 +#include <linux/bitops.h>
++#include <linux/sched.h>
  
  static inline int is_dma_buf_file(struct file *);