From b800ffe3dae7200ab86207a59bf50f6305e09c84 Mon Sep 17 00:00:00 2001
From: Gerhard Gonter <ggonter@gmail.com>
Date: Wed, 27 Apr 2016 18:11:16 +0200
Subject: [PATCH] add #include <linux/fs_pin.h> for more modern kernels; check
 if this kernel version is appropriate

---
 jbb_gpl/hook.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/jbb_gpl/hook.c b/jbb_gpl/hook.c
index b754cbd..b662d32 100755
--- a/jbb_gpl/hook.c
+++ b/jbb_gpl/hook.c
@@ -89,6 +89,10 @@ driver_xxxx - Module specific functions such as open, close and ioctl.
 #include <asm/uaccess.h>  /* VERIFY_WRITE */
 #include <asm/io.h>
 
+# if ( LINUX_VERSION_CODE > KERNEL_VERSION(3,19,0) )
+#include <linux/fs_pin.h>
+#endif
+
 #include "jbb.h"
 
 MODULE_LICENSE("GPL");
-- 
GitLab