Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mwprocapture: patch to fix build for linux 4.14
- Loading branch information
Cray Elliott
authored and
Cray Elliott
committed
Nov 14, 2017
1 parent
f6ae394
commit ce8dea6
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff -Naur ProCaptureForLinux_3589/src/sources/ospi/linux-file.c ProCaptureForLinux_3589_new/src/sources/ospi/linux-file.c | ||
--- ProCaptureForLinux_3589/src/sources/ospi/linux-file.c 2017-08-17 02:46:07.000000000 -0700 | ||
+++ ProCaptureForLinux_3589_new/src/sources/ospi/linux-file.c 2017-11-13 19:49:46.710616748 -0800 | ||
@@ -7,8 +7,8 @@ | ||
|
||
#include "linux-file.h" | ||
|
||
-#include <asm/uaccess.h> | ||
#include <linux/sched.h> | ||
+#include <asm/uaccess.h> | ||
|
||
struct file *linux_file_open(const char *path, int flags, int mode) | ||
{ | ||
@@ -35,7 +35,7 @@ | ||
|
||
oldfs = get_fs(); | ||
set_fs(get_ds()); | ||
- ret = vfs_read(file, data, size, &offset); | ||
+ ret = kernel_read(file, data, size, &offset); | ||
set_fs(oldfs); | ||
|
||
return ret; | ||
@@ -48,7 +48,7 @@ | ||
|
||
oldfs = get_fs(); | ||
set_fs(get_ds()); | ||
- ret = vfs_write(file, data, size, &offset); | ||
+ ret = kernel_write(file, data, size, &offset); | ||
set_fs(oldfs); | ||
|
||
return ret; |