compile fix >=linux-4.5.2; thx to H.Broeken M.Dummer on wrt bug 581450
authorJoerg Bornkessel <hd_brummy@gentoo.org>
Thu, 5 May 2016 21:08:38 +0000 (23:08 +0200)
committerJoerg Bornkessel <hd_brummy@gentoo.org>
Thu, 5 May 2016 21:08:38 +0000 (23:08 +0200)
Package-Manager: portage-2.2.28

media-tv/v4l-dvb-saa716x/files/v4l-dvb-saa716x-4.5.2-fix-compile.patch [new file with mode: 0644]
media-tv/v4l-dvb-saa716x/v4l-dvb-saa716x-0.0.1_p20141109-r2.ebuild

diff --git a/media-tv/v4l-dvb-saa716x/files/v4l-dvb-saa716x-4.5.2-fix-compile.patch b/media-tv/v4l-dvb-saa716x/files/v4l-dvb-saa716x-4.5.2-fix-compile.patch
new file mode 100644 (file)
index 0000000..ac499ac
--- /dev/null
@@ -0,0 +1,13 @@
+fix compile with kernel >= 4.5.2
+wrt bug 581450
+Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> 2016/05/05
+--- a/linux/drivers/media/common/saa716x/saa716x_pci.c.old     2016-04-27 20:59:51.000000000 +0200
++++ b/linux/drivers/media/common/saa716x/saa716x_pci.c 2016-04-27 21:19:03.117822874 +0200
+@@ -1,6 +1,7 @@
+ #include <asm/atomic.h>
+ #include <linux/spinlock_types.h>
+ #include <asm/io.h>
++#include <asm/processor.h>
+ #include <asm/pgtable.h>
+ #include <asm/page.h>
+ #include <linux/kmod.h>
index 7904dece5f36eae4711c0a5197f9aefe3aebde6c..626fe2e1c43f6641cac55dd8fd62b2c57833f2d1 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 inherit linux-info linux-mod
 
@@ -39,6 +39,7 @@ src_prepare() {
        epatch "${FILESDIR}/v4l-dvb-saa716x-Makefilepatch-2.diff"
        kernel_is ge 3 19 0 && epatch "${FILESDIR}/v4l-dvb-saa716x-3.19-set_gpio.patch"
        kernel_is ge 4 2 0 && epatch "${FILESDIR}/v4l-dvb-saa716x-4.2-fix-compile.patch"
+       kernel_is ge 4 5 2 && epatch "${FILESDIR}/v4l-dvb-saa716x-4.5.2-fix-compile.patch"
 }
 
 src_compile() {