commit:     d04316bedfd9d97e1c2c0f98bcfdfbb82e6fc679
Author:     Fabio Rossi <rossi.f <AT> inwind <DOT> it>
AuthorDate: Tue Aug 22 10:02:00 2017 +0000
Commit:     Fabio Rossi <rossi.f <AT> inwind <DOT> net>
CommitDate: Tue Aug 22 10:02:00 2017 +0000
URL:        https://gitweb.gentoo.org/proj/vmware.git/commit/?id=d04316be

app-emulation/vmware-modules: add support to kernel 4.13 for version 12

 .../vmware-modules/files/308-4.13-00-vmnet-refcount.patch     | 11 +++++++++++
 app-emulation/vmware-modules/vmware-modules-308.5.7.ebuild    |  1 +
 2 files changed, 12 insertions(+)

diff --git 
a/app-emulation/vmware-modules/files/308-4.13-00-vmnet-refcount.patch 
b/app-emulation/vmware-modules/files/308-4.13-00-vmnet-refcount.patch
new file mode 100644
index 0000000..0a1d835
--- /dev/null
+++ b/app-emulation/vmware-modules/files/308-4.13-00-vmnet-refcount.patch
@@ -0,0 +1,11 @@
+--- vmnet-only/bridge.c        2017-06-20 04:54:39.000000000 +0200
++++ vmnet-only/bridge.c.new    2017-08-18 11:16:20.979974593 +0200
+@@ -636,7 +636,7 @@
+        unsigned long flags;
+        int i;
+ 
+-       atomic_inc(&clone->users);
++       refcount_inc(&clone->users);
+ 
+        clone->dev = dev;
+        clone->protocol = eth_type_trans(clone, dev);

diff --git a/app-emulation/vmware-modules/vmware-modules-308.5.7.ebuild 
b/app-emulation/vmware-modules/vmware-modules-308.5.7.ebuild
index ad6b45c..59ce990 100644
--- a/app-emulation/vmware-modules/vmware-modules-308.5.7.ebuild
+++ b/app-emulation/vmware-modules/vmware-modules-308.5.7.ebuild
@@ -110,6 +110,7 @@ src_prepare() {
        kernel_is ge 4 12 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-4.12-00-vmblock-current_time.patch"
        kernel_is ge 4 12 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-4.12-01-vmci-do_once.patch"
        kernel_is ge 4 12 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-4.12-02-vmci-pci_enable_msix.patch"
+       kernel_is ge 4 13 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-4.13-00-vmnet-refcount.patch"
 
        # Allow user patches so they can support RC kernels and whatever else
        epatch_user

Reply via email to