sys-block/rts5229: Fix build with kernel 4.2.0
authorVikraman Choudhury <vikraman@gentoo.org>
Thu, 17 Sep 2015 05:22:11 +0000 (01:22 -0400)
committerVikraman Choudhury <vikraman@gentoo.org>
Thu, 17 Sep 2015 05:22:11 +0000 (01:22 -0400)
Gentoo-Bug: 559424

Package-Manager: portage-2.2.20.1

sys-block/rts5229/files/rts5229-vmalloc.patch [new file with mode: 0644]
sys-block/rts5229/rts5229-1.07-r6.ebuild [moved from sys-block/rts5229/rts5229-1.07-r5.ebuild with 96% similarity]

diff --git a/sys-block/rts5229/files/rts5229-vmalloc.patch b/sys-block/rts5229/files/rts5229-vmalloc.patch
new file mode 100644 (file)
index 0000000..51058cf
--- /dev/null
@@ -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"
similarity index 96%
rename from sys-block/rts5229/rts5229-1.07-r5.ebuild
rename to sys-block/rts5229/rts5229-1.07-r6.ebuild
index e80c8954e33401826c6044b0e2cfbbe4f70b602f..fff45c794893c91dd549c00c5a6f5efb4c3b795e 100644 (file)
@@ -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() {