summaryrefslogtreecommitdiff
path: root/network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2013-11-03 10:45:00 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-11-03 11:12:15 -0600
commit14428f0756c6cb532756f34dd14eef9f14b78e1a (patch)
treefc39ea652c44431a67e6e688ba7014bf1b10ecbd /network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch
parent518cd3e68ac7baac792bec0ad0609830e72b6fdd (diff)
downloadslackbuilds-14428f0756c6cb532756f34dd14eef9f14b78e1a.tar.gz
network/ndiswrapper-kernel: Included some patches for 3.8-3.10.x
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch')
-rw-r--r--network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch b/network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch
new file mode 100644
index 0000000000..8db804b6e1
--- /dev/null
+++ b/network/ndiswrapper-kernel/patches/0005-Fix-compilation-on-pre-3.9.patch
@@ -0,0 +1,30 @@
+From b0d9f0c79b1dbcb42a5661e96a364519ac5faded Mon Sep 17 00:00:00 2001
+From: Andrey Utkin <andrey.krieger.utkin@gmail.com>
+Date: Tue, 8 Oct 2013 23:09:52 +0300
+Subject: [PATCH 5/5] Fix compilation on pre-3.9
+
+Provide file_inode().
+---
+ driver/proc.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/driver/proc.c b/driver/proc.c
+index 0a28e45..367ff97 100644
+--- a/driver/proc.c
++++ b/driver/proc.c
+@@ -25,6 +25,12 @@
+
+ #define MAX_PROC_STR_LEN 32
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
++static inline struct inode *file_inode(struct file *f)
++{
++ return f->f_path.dentry->d_inode;
++}
++#endif
+
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
+ static inline void *PDE_DATA(const struct inode *inode)
+--
+1.8.4
+