linux: Fix implicit conversion error on ARM [updated] (see https://crbug.com/1292951#c100)
This commit is contained in:
parent
654f570b6e
commit
f148af1bd6
|
@ -1,18 +1,13 @@
|
||||||
diff --git linux_syscall_support.h linux_syscall_support.h
|
diff --git linux_syscall_support.h linux_syscall_support.h
|
||||||
index e4e816f..bbbd338 100644
|
index e4e816f..5ea1295 100644
|
||||||
--- linux_syscall_support.h
|
--- linux_syscall_support.h
|
||||||
+++ linux_syscall_support.h
|
+++ linux_syscall_support.h
|
||||||
@@ -4861,7 +4861,12 @@ struct kernel_statfs {
|
@@ -4842,7 +4842,7 @@ struct kernel_statfs {
|
||||||
size_t count, loff_t off) {
|
unsigned, o2)
|
||||||
union { loff_t off; unsigned arg[2]; } o = { off };
|
LSS_INLINE _syscall5(ssize_t, _pwrite64, int, f,
|
||||||
return LSS_NAME(_pwrite64)(fd, buf, count,
|
const void *, b, size_t, c, unsigned, o1,
|
||||||
- LSS_LLARG_PAD o.arg[0], o.arg[1]);
|
- long, o2)
|
||||||
+ LSS_LLARG_PAD o.arg[0],
|
+ unsigned, o2)
|
||||||
+#if !defined(__ARM_EABI__) && !defined(__mips__)
|
LSS_INLINE _syscall4(int, _readahead, int, f,
|
||||||
+ static_cast<long>(o.arg[1]));
|
unsigned, o1, unsigned, o2, size_t, c)
|
||||||
+#else
|
#endif
|
||||||
+ o.arg[1]);
|
|
||||||
+#endif
|
|
||||||
}
|
|
||||||
LSS_INLINE int LSS_NAME(readahead)(int fd, loff_t off, size_t count) {
|
|
||||||
union { loff_t off; unsigned arg[2]; } o = { off };
|
|
||||||
|
|
Loading…
Reference in New Issue