summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/rts5229')
-rw-r--r--sys-block/rts5229/files/rts5229-vmalloc.patch33
-rw-r--r--sys-block/rts5229/rts5229-1.07-r6.ebuild (renamed from sys-block/rts5229/rts5229-1.07-r5.ebuild)1
2 files changed, 34 insertions, 0 deletions
diff --git a/sys-block/rts5229/files/rts5229-vmalloc.patch b/sys-block/rts5229/files/rts5229-vmalloc.patch
new file mode 100644
index 000000000000..51058cfb6f0c
--- /dev/null
+++ b/sys-block/rts5229/files/rts5229-vmalloc.patch
@@ -0,0 +1,33 @@
+diff -Naur rts5229.a/ms.c rts5229.b/ms.c
+--- rts5229.a/ms.c 2012-03-20 21:40:18.000000000 -0400
++++ rts5229.b/ms.c 2015-09-17 01:13:54.830723253 -0400
+@@ -23,6 +23,7 @@
+ #include <linux/blkdev.h>
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
+diff -Naur rts5229.a/rtsx_chip.c rts5229.b/rtsx_chip.c
+--- rts5229.a/rtsx_chip.c 2012-03-20 21:40:18.000000000 -0400
++++ rts5229.b/rtsx_chip.c 2015-09-17 01:13:29.574133449 -0400
+@@ -24,6 +24,7 @@
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
+ #include <linux/workqueue.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
+diff -Naur rts5229.a/rtsx_scsi.c rts5229.b/rtsx_scsi.c
+--- rts5229.a/rtsx_scsi.c 2012-03-20 21:40:18.000000000 -0400
++++ rts5229.b/rtsx_scsi.c 2015-09-17 01:13:44.035898653 -0400
+@@ -23,6 +23,7 @@
+ #include <linux/blkdev.h>
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
diff --git a/sys-block/rts5229/rts5229-1.07-r5.ebuild b/sys-block/rts5229/rts5229-1.07-r6.ebuild
index e80c8954e334..fff45c794893 100644
--- a/sys-block/rts5229/rts5229-1.07-r5.ebuild
+++ b/sys-block/rts5229/rts5229-1.07-r6.ebuild
@@ -32,6 +32,7 @@ src_prepare() {
&& epatch "${FILESDIR}/${PN}-linux-3.10.patch"
sed -e '/__DATE__/d' \
-i rtsx.c || die "Sed failed!"
+ epatch "${FILESDIR}/${PN}-vmalloc.patch"
}
pkg_setup() {