From 78376a3171e9d29c9d132929159d22628fe86776 Mon Sep 17 00:00:00 2001 From: Fabio Rossi Date: Tue, 20 Feb 2018 17:43:04 +0100 Subject: app-emulation/vmware-modules: add support to kernel 4.16-rc2 The changes are due to kernel commit ae5e165d855dd978a461b22175531b07f54fb61f, there is a new API to access inode->i_version --- .../files/308-4.16-00-vmblock-iversion.patch | 25 ++++++++++++++++++++++ .../vmware-modules/vmware-modules-308.5.8.ebuild | 1 + 2 files changed, 26 insertions(+) create mode 100644 app-emulation/vmware-modules/files/308-4.16-00-vmblock-iversion.patch (limited to 'app-emulation') diff --git a/app-emulation/vmware-modules/files/308-4.16-00-vmblock-iversion.patch b/app-emulation/vmware-modules/files/308-4.16-00-vmblock-iversion.patch new file mode 100644 index 0000000..42efdb9 --- /dev/null +++ b/app-emulation/vmware-modules/files/308-4.16-00-vmblock-iversion.patch @@ -0,0 +1,25 @@ +--- ./vmblock-only/linux/inode.c 2018-02-20 16:33:44.296417858 +0100 ++++ ./vmblock-only/linux/inode.c.new 2018-02-20 17:33:24.525618051 +0100 +@@ -30,6 +30,10 @@ + #include + #include + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0) ++#include ++#endif ++ + #include "vmblockInt.h" + #include "filesystem.h" + #include "block.h" +@@ -155,7 +159,11 @@ + + inode->i_mode = S_IFLNK | S_IRWXUGO; + inode->i_size = INODE_TO_IINFO(inode)->nameLen; ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0) ++ inode_set_iversion(inode, 1); ++#else + inode->i_version = 1; ++#endif + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) + inode->i_uid = inode->i_gid = 0; diff --git a/app-emulation/vmware-modules/vmware-modules-308.5.8.ebuild b/app-emulation/vmware-modules/vmware-modules-308.5.8.ebuild index e6f2999..17264ed 100644 --- a/app-emulation/vmware-modules/vmware-modules-308.5.8.ebuild +++ b/app-emulation/vmware-modules/vmware-modules-308.5.8.ebuild @@ -115,6 +115,7 @@ src_prepare() { kernel_is ge 4 14 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.14-00-vmmon-global-page-state.patch" kernel_is ge 4 14 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.14-01-deprecated-asm-uaccess.patch" kernel_is ge 4 15 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.15-00-init_timer.patch" + kernel_is ge 4 16 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.16-00-vmblock-iversion.patch" # Allow user patches so they can support RC kernels and whatever else epatch_user -- cgit v1.2.3-65-gdbad