From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C64D139697 for ; Tue, 23 May 2017 23:26:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7562CE0DA6; Tue, 23 May 2017 23:26:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 40645E0DA6 for ; Tue, 23 May 2017 23:26:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5C06341763 for ; Tue, 23 May 2017 23:26:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7EB647465 for ; Tue, 23 May 2017 23:26:55 +0000 (UTC) From: "Fabio Rossi" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabio Rossi" Message-ID: <1495580910.0326b3e5c8bd3163cd658cc99b865251756bfec2.fabio@gentoo> Subject: [gentoo-commits] proj/vmware:master commit in: app-emulation/vmware-modules/, app-emulation/vmware-modules/files/ X-VCS-Repository: proj/vmware X-VCS-Files: app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p1.patch app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p2.patch app-emulation/vmware-modules/files/308-4.11-01-vsock-lockdep.patch app-emulation/vmware-modules/files/308-4.11-02-vmmon.patch app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild app-emulation/vmware-modules/vmware-modules-308.5.6.ebuild X-VCS-Directories: app-emulation/vmware-modules/files/ app-emulation/vmware-modules/ X-VCS-Committer: fabio X-VCS-Committer-Name: Fabio Rossi X-VCS-Revision: 0326b3e5c8bd3163cd658cc99b865251756bfec2 X-VCS-Branch: master Date: Tue, 23 May 2017 23:26:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f7d739f7-3788-401f-9d59-5ac84471fa2b X-Archives-Hash: 902fbb88da15de97c48d1468c6ac1757 commit: 0326b3e5c8bd3163cd658cc99b865251756bfec2 Author: Fabio Rossi inwind it> AuthorDate: Tue May 23 23:08:30 2017 +0000 Commit: Fabio Rossi inwind net> CommitDate: Tue May 23 23:08:30 2017 +0000 URL: https://gitweb.gentoo.org/proj/vmware.git/commit/?id=0326b3e5 app-emulation/vmware-modules: add support to kernel 4.11 .../files/308-4.11-00-missing-headers-p1.patch | 40 ++++++++++++++++++++++ .../files/308-4.11-00-missing-headers-p2.patch | 20 +++++++++++ .../files/308-4.11-01-vsock-lockdep.patch | 21 ++++++++++++ .../vmware-modules/files/308-4.11-02-vmmon.patch | 30 ++++++++++++++++ .../vmware-modules/vmware-modules-308.1.1.ebuild | 4 +++ .../vmware-modules/vmware-modules-308.5.6.ebuild | 2 ++ 6 files changed, 117 insertions(+) diff --git a/app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p1.patch b/app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p1.patch new file mode 100644 index 0000000..60fcdfc --- /dev/null +++ b/app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p1.patch @@ -0,0 +1,40 @@ +--- vmblock-only/linux/inode.c 2017-05-06 16:54:57.000000000 +0200 ++++ vmblock-only/linux/inode.c.new 2017-05-06 16:55:32.000000000 +0200 +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + #include "vmblockInt.h" + #include "filesystem.h" +--- vmci-only/linux/driver.c 2017-05-06 16:59:06.000000000 +0200 ++++ vmci-only/linux/driver.c.new 2017-05-06 17:00:03.000000000 +0200 +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + + #include "compat_highmem.h" + #include "compat_interrupt.h" +--- vmci-only/linux/vmciKernelIf.c 2017-05-06 17:00:42.000000000 +0200 ++++ vmci-only/linux/vmciKernelIf.c.new 2017-05-06 17:01:24.000000000 +0200 +@@ -41,6 +41,7 @@ + #include + #include + #include ++#include + + #include "compat_highmem.h" + #include "compat_interrupt.h" +--- vsock-only/linux/af_vsock.c 2017-05-06 17:02:05.000000000 +0200 ++++ vsock-only/linux/af_vsock.c.new 2017-05-06 17:02:49.000000000 +0200 +@@ -106,6 +106,7 @@ + #include + #include + #include ++#include + #include + #if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) + # include diff --git a/app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p2.patch b/app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p2.patch new file mode 100644 index 0000000..29a0c9d --- /dev/null +++ b/app-emulation/vmware-modules/files/308-4.11-00-missing-headers-p2.patch @@ -0,0 +1,20 @@ +--- vmmon-only/linux/hostif.c 2017-05-06 16:56:09.000000000 +0200 ++++ vmmon-only/linux/hostif.c.new 2017-05-06 16:56:41.000000000 +0200 +@@ -73,6 +73,7 @@ + #include + #include + #include ++#include + + #include + +--- vmnet-only/userif.c 2017-03-13 04:05:59.000000000 +0100 ++++ vmnet-only/userif.c.new 2017-05-06 16:58:32.000000000 +0200 +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + + #include + #include diff --git a/app-emulation/vmware-modules/files/308-4.11-01-vsock-lockdep.patch b/app-emulation/vmware-modules/files/308-4.11-01-vsock-lockdep.patch new file mode 100644 index 0000000..7218d27 --- /dev/null +++ b/app-emulation/vmware-modules/files/308-4.11-01-vsock-lockdep.patch @@ -0,0 +1,21 @@ +--- vsock-only/linux/af_vsock.c 2017-05-21 00:58:02.900776185 +0200 ++++ vsock-only/linux/af_vsock.c.new 2017-05-21 00:57:18.932773727 +0200 +@@ -213,7 +213,7 @@ + struct sockaddr *addr, int addrLen, int flags); + static int VSockVmciStreamConnect(struct socket *sock, + struct sockaddr *addr, int addrLen, int flags); +-static int VSockVmciAccept(struct socket *sock, struct socket *newsock, int flags); ++static int VSockVmciAccept(struct socket *sock, struct socket *newsock, int flags, bool kern); + static int VSockVmciGetname(struct socket *sock, + struct sockaddr *addr, int *addrLen, int peer); + static unsigned int VSockVmciPoll(struct file *file, +@@ -3772,7 +3772,8 @@ + static int + VSockVmciAccept(struct socket *sock, // IN + struct socket *newsock, // IN/OUT +- int flags) // IN ++ int flags, // IN ++ bool kern) // IN + { + struct sock *listener; + int err; diff --git a/app-emulation/vmware-modules/files/308-4.11-02-vmmon.patch b/app-emulation/vmware-modules/files/308-4.11-02-vmmon.patch new file mode 100644 index 0000000..b126453 --- /dev/null +++ b/app-emulation/vmware-modules/files/308-4.11-02-vmmon.patch @@ -0,0 +1,30 @@ +diff -ur old/vmmon-only/linux/driver.c vmmon-only/linux/driver.c +--- old/vmmon-only/linux/driver.c 2016-11-12 09:15:52.000000000 +0200 ++++ vmmon-only/linux/driver.c 2017-03-06 10:46:33.347053458 +0200 +@@ -105,7 +105,7 @@ + static int LinuxDriver_Close(struct inode *inode, struct file *filp); + static unsigned int LinuxDriverPoll(struct file *file, poll_table *wait); + #if defined(VMW_NOPAGE_2624) +-static int LinuxDriverFault(struct vm_area_struct *vma, struct vm_fault *fault); ++static int LinuxDriverFault(struct vm_fault *fault); + #else + static struct page *LinuxDriverNoPage(struct vm_area_struct *vma, + unsigned long address, +@@ -882,15 +882,14 @@ + */ + + #if defined(VMW_NOPAGE_2624) +-static int LinuxDriverFault(struct vm_area_struct *vma, //IN +- struct vm_fault *fault) //IN/OUT ++static int LinuxDriverFault(struct vm_fault *fault) //IN/OUT + #else + static struct page *LinuxDriverNoPage(struct vm_area_struct *vma, //IN + unsigned long address, //IN + int *type) //OUT: Fault type + #endif + { +- VMLinux *vmLinux = (VMLinux *) vma->vm_file->private_data; ++ VMLinux *vmLinux = (VMLinux *) fault->vma->vm_file->private_data; + unsigned long pg; + struct page* page; + diff --git a/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild b/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild index 51eaa63..86ee488 100644 --- a/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild +++ b/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild @@ -109,6 +109,10 @@ src_prepare() { kernel_is ge 4 9 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.09-00-user-pages-p1.patch" kernel_is ge 4 9 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.09-00-user-pages-p2.patch" kernel_is ge 4 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.10-00-generic_readlink.patch" + kernel_is ge 4 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.11-00-missing-headers-p1.patch" + kernel_is ge 4 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.11-00-missing-headers-p2.patch" + kernel_is ge 4 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.11-01-vsock-lockdep.patch" + kernel_is ge 4 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.11-02-vmmon.patch" # Allow user patches so they can support RC kernels and whatever else epatch_user diff --git a/app-emulation/vmware-modules/vmware-modules-308.5.6.ebuild b/app-emulation/vmware-modules/vmware-modules-308.5.6.ebuild index 4fcb06c..92fc364 100644 --- a/app-emulation/vmware-modules/vmware-modules-308.5.6.ebuild +++ b/app-emulation/vmware-modules/vmware-modules-308.5.6.ebuild @@ -106,6 +106,8 @@ src_prepare() { kernel_is ge 4 8 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.08-00-nr_anon_mapped.patch" kernel_is ge 4 9 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.09-00-user-pages-p1.patch" kernel_is ge 4 10 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.10-00-generic_readlink.patch" + kernel_is ge 4 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.11-00-missing-headers-p1.patch" + kernel_is ge 4 11 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.11-01-vsock-lockdep.patch" # Allow user patches so they can support RC kernels and whatever else epatch_user