diff options
author | indra17r | 2018-06-18 17:52:00 +0700 |
---|---|---|
committer | indra17r | 2018-06-18 17:52:00 +0700 |
commit | be581990c532fa43af623b9eb75b566e417c1c73 (patch) | |
tree | 476bfc28805cbc7a4e4d61d3f46a9d632a049a73 /001-MT7601u-Linux-4.x.patch | |
parent | d1dae94a76933dd51f5caf2655c11f39aa9f5e75 (diff) | |
download | aur-be581990c532fa43af623b9eb75b566e417c1c73.tar.gz |
Linux 4.14 support
Diffstat (limited to '001-MT7601u-Linux-4.x.patch')
-rw-r--r-- | 001-MT7601u-Linux-4.x.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/001-MT7601u-Linux-4.x.patch b/001-MT7601u-Linux-4.x.patch new file mode 100644 index 000000000000..61ccc2edc9ac --- /dev/null +++ b/001-MT7601u-Linux-4.x.patch @@ -0,0 +1,24 @@ +diff -ru MT7601u-2/src/include/os/rt_linux.h MT7601u/src/include/os/rt_linux.h +--- MT7601u-2/src/include/os/rt_linux.h 2018-06-17 19:34:56.006528978 +0700 ++++ MT7601u/src/include/os/rt_linux.h 2018-06-18 04:09:48.253593046 +0700 +@@ -83,6 +83,8 @@ + #include <linux/kthread.h> + #endif /* KTHREAD_SUPPORT */ + ++/* For usage of kill_pid and friends. */ ++#include <linux/sched/signal.h> + + #include "os/rt_linux_cmm.h" + +diff -ru MT7601u-2/src/os/linux/rt_linux.c MT7601u/src/os/linux/rt_linux.c +--- MT7601u-2/src/os/linux/rt_linux.c 2018-06-17 19:34:56.026529050 +0700 ++++ MT7601u/src/os/linux/rt_linux.c 2018-06-18 05:15:53.294949852 +0700 +@@ -1165,7 +1165,7 @@ + /* The object must have a read method */ + if (osfd->f_op /*&& osfd->f_op->read*/) { + //return osfd->f_op->read(osfd, pDataPtr, readLen, &osfd->f_pos); +- return vfs_read(osfd, pDataPtr, readLen, &osfd->f_pos); ++ return kernel_read(osfd, pDataPtr, readLen, &osfd->f_pos); + } else { + DBGPRINT(RT_DEBUG_ERROR, ("no file read method\n")); + return -1; |