diff options
-rw-r--r-- | app-emulation/vmware-modules/files/308-4.16-00-vmblock-iversion.patch | 25 | ||||
-rw-r--r-- | app-emulation/vmware-modules/vmware-modules-308.5.8.ebuild | 1 |
2 files changed, 26 insertions, 0 deletions
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 <linux/namei.h> + #include <linux/cred.h> + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0) ++#include <linux/iversion.h> ++#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 |