Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kernelbump.git;a=commitdiff;h=0e760f2a499f7c3ca196f2a7fbaed3ece799c400

commit 0e760f2a499f7c3ca196f2a7fbaed3ece799c400
Author: DeX77 <[email protected]>
Date:   Mon May 1 15:21:00 2017 +0200

vhba-module-20161009-29-x86_64

* fix build

diff --git 
a/source/apps-extra/vhba-module/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
 
b/source/apps-extra/vhba-module/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
new file mode 100644
index 0000000..4244f4b
--- /dev/null
+++ 
b/source/apps-extra/vhba-module/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
@@ -0,0 +1,26 @@
+diff -Naur vhba-module-20161009/vhba.c vhba-module-20161009.new/vhba.c
+--- vhba-module-20161009/vhba.c        2016-10-09 21:03:17.000000000 +0200
++++ vhba-module-20161009.new/vhba.c    2017-05-01 15:20:08.000000000 +0200
+@@ -18,16 +18,21 @@
+  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+  */
+
++#include <linux/version.h>
++
+ #include <linux/init.h>
+ #include <linux/module.h>
+ #include <linux/highmem.h>
+ #include <linux/fs.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++#include <linux/sched/signal.h>
++#else
+ #include <linux/sched.h>
++#endif
+ #include <linux/platform_device.h>
+ #include <linux/miscdevice.h>
+ #include <linux/poll.h>
+ #include <linux/slab.h>
+-#include <linux/version.h>
+ #ifdef CONFIG_COMPAT
+ #include <linux/compat.h>
+ #endif
diff --git a/source/apps-extra/vhba-module/FrugalBuild 
b/source/apps-extra/vhba-module/FrugalBuild
index db8a146..dcadb71 100644
--- a/source/apps-extra/vhba-module/FrugalBuild
+++ b/source/apps-extra/vhba-module/FrugalBuild
@@ -11,14 +11,20 @@ _F_make_opts="-j1"
_F_kernelmod_scriptlet="$pkgname.install"
Finclude sourceforge kernel-module
groups=('apps-extra')
-archs=('i686' 'x86_64')
-source=($source $pkgname.install 60-vhba.rules)
+archs=('x86_64')
+source=($source \
+       $pkgname.install \
+       60-vhba.rules \
+       0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch )
sha1sums=('7b127b454b0ddc2f49ad0c3cc53d705080625c74' \
'e79a6bde343736a14073ed5c7fb55d400a92bcc9' \
-          'f74af3dcf404ed2393173f9672fc7aeaf04c19eb')
+          'f74af3dcf404ed2393173f9672fc7aeaf04c19eb' \
+          'e397028db0324100096da80dea0cdff96a5e7da5')

build()
{
+       Fcd
+       Fpatchall
Fsed '$(shell uname -r)' "$_F_kernelmod_uname" Makefile
Fmake
Ffilerel $_F_kernelmod_dir/kernel/drivers/scsi/vhba.ko
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to