summarylogtreecommitdiffstats
path: root/linux-4.12-copy-user.patch
blob: abaab4f7b12252b102d8fcd3f162ec622d97a28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -ur pt1_drv-dkms-hg.orig/driver/pt1_pci.c pt1_drv-dkms-hg/driver/pt1_pci.c
--- pt1_drv-dkms-hg.orig/driver/pt1_pci.c	2017-11-28 21:15:03.501668869 +0900
+++ pt1_drv-dkms-hg/driver/pt1_pci.c	2017-11-28 21:21:15.294803923 +0900
@@ -11,13 +11,16 @@
 #include <linux/interrupt.h>
 #include <linux/version.h>
 #include <linux/mutex.h>
+#include <linux/uaccess.h>
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
 #include <asm/system.h>
 #endif
 #include <asm/io.h>
 #include <asm/irq.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,12,0)
 #include <asm/uaccess.h>
+#endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
 #include <linux/freezer.h>