commit 760a61d9e8802c4f6d716931fbd0a66d9ba288ea
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Fri Jan 27 01:18:38 2017 +0000
Applied lnkops.patch for kernel-4.10.0-0.rc5
VirtualBox-kmod.spec | 7 ++++++-
kernel-4.10.0-0.rc5.lnkops.patch | 17 +++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/VirtualBox-kmod.spec b/VirtualBox-kmod.spec
index c7bd092..e0998be 100644
--- a/VirtualBox-kmod.spec
+++ b/VirtualBox-kmod.spec
@@ -28,7 +28,7 @@
Name: VirtualBox-kmod
Version: 5.1.14
#Release: 1%%{?prerel:.%%{prerel}}%%{?dist}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Kernel module for VirtualBox
Group: System Environment/Kernel
@@ -36,6 +36,7 @@ License: GPLv2 or CDDL
URL:
http://www.virtualbox.org/wiki/VirtualBox
# This filters out the XEN kernel, since we don't run on XEN
Source1: VirtualBox-kmod-excludekernel-filter.txt
+Patch1: kernel-4.10.0-0.rc5.lnkops.patch
%global AkmodsBuildRequires %{_bindir}/kmodtool, VirtualBox-kmodsrc >=
%{version}%{vboxreltag}, xz, time
BuildRequires: %{AkmodsBuildRequires}
@@ -58,6 +59,7 @@ Kernel module for VirtualBox
%prep
%setup -T -c
tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{version}.tar.xz
+%patch1 -p1 -b .lnkops
# error out if there was something wrong with kmodtool
%{?kmodtool_check}
@@ -106,6 +108,9 @@ DIRS=$(ls %{name}-%{version} |wc -l)
%changelog
+* Fri Jan 27 2017 Sérgio Basto <sergio(a)serjux.com> - 5.1.14-2
+- Applied lnkops.patch for kernel-4.10.0-0.rc5
+
* Wed Jan 18 2017 Sérgio Basto <sergio(a)serjux.com> - 5.1.14-1
- Update VBox to 5.1.14
diff --git a/kernel-4.10.0-0.rc5.lnkops.patch b/kernel-4.10.0-0.rc5.lnkops.patch
new file mode 100644
index 0000000..1b2562f
--- /dev/null
+++ b/kernel-4.10.0-0.rc5.lnkops.patch
@@ -0,0 +1,17 @@
+Fix kernel-4.10.0-0.rc5
+
+based on
https://patchwork.kernel.org/patch/9327855/
+--- ./VirtualBox-kmod-5.1.14/vboxsf/lnkops.c.orig 2017-01-27 00:42:02.874808843 +0000
++++ ./VirtualBox-kmod-5.1.14/vboxsf/lnkops.c 2017-01-27 00:43:37.814861397 +0000
+@@ -90,7 +90,11 @@ static const char *sf_get_link(struct de
+
+ struct inode_operations sf_lnk_iops =
+ {
++# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
++ .readlink = vfs_readlink,
++# else
+ .readlink = generic_readlink,
++# endif
+ # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0)
+ .get_link = sf_get_link
+ # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)