diff options
author | Kohei Suzuki | 2017-11-28 21:23:19 +0900 |
---|---|---|
committer | Kohei Suzuki | 2017-11-28 21:23:19 +0900 |
commit | 64238448baca7452ab4d72634b41a64d5cce254d (patch) | |
tree | 63d8a23e5887e6355c1cdc9534ce7a48e65ed87b /linux-4.12-copy-user.patch | |
parent | faa234291774153ea85c07b5b29f6b5a8bdb963a (diff) | |
download | aur-pt1_drv-dkms-hg.tar.gz |
Apply patch for Linux 4.12
Diffstat (limited to 'linux-4.12-copy-user.patch')
-rw-r--r-- | linux-4.12-copy-user.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linux-4.12-copy-user.patch b/linux-4.12-copy-user.patch new file mode 100644 index 000000000000..abaab4f7b122 --- /dev/null +++ b/linux-4.12-copy-user.patch @@ -0,0 +1,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> |