summarylogtreecommitdiffstats
path: root/009-linux-4-10.patch
blob: b5fc2d135270acbe9100ca19e747e3acafcbfab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From d9bd947b1fa1d7c47cd1cdb894dadfa07f51e446 Mon Sep 17 00:00:00 2001
From: vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>
Date: Tue, 24 Jan 2017 08:13:25 +0000
Subject: [PATCH] Additions/linux/sharedfolders: Linux 4.10 fix

git-svn-id: http://www.virtualbox.org/svn/vbox@65409 cfe28804-0f27-0410-a406-dd0f0b0b656f
---
 trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/VBox/Additions/linux/sharedfolders/lnkops.c b/src/VBox/Additions/linux/sharedfolders/lnkops.c
index 66ddecd..e43b84c 100644
--- a/src/VBox/Additions/linux/sharedfolders/lnkops.c
+++ b/src/VBox/Additions/linux/sharedfolders/lnkops.c
@@ -90,7 +90,9 @@ static const char *sf_get_link(struct dentry *dentry, struct inode *inode,
 
 struct inode_operations sf_lnk_iops =
 {
+# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
     .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)