* [LTP] [PATCH] sync_file_range: add little endian support for mips
@ 2017-10-05 11:35 Dejan Jovicevic
2017-10-11 11:35 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Dejan Jovicevic @ 2017-10-05 11:35 UTC (permalink / raw)
To: ltp
Signed-off-by: Dejan Jovicevic <dejan.jovicevic@rt-rk.com>
---
testcases/kernel/syscalls/sync_file_range/sync_file_range01.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/testcases/kernel/syscalls/sync_file_range/sync_file_range01.c b/testcases/kernel/syscalls/sync_file_range/sync_file_range01.c
index 0a9fb8e..cebb919 100644
--- a/testcases/kernel/syscalls/sync_file_range/sync_file_range01.c
+++ b/testcases/kernel/syscalls/sync_file_range/sync_file_range01.c
@@ -218,8 +218,13 @@ static inline long syncfilerange(int fd, off64_t offset, off64_t nbytes,
/* mips */
#elif defined(__mips__) && __WORDSIZE == 32
+#if __BYTE_ORDER == __BIG_ENDIAN
return ltp_syscall(__NR_sync_file_range, fd, 0, (int)(offset >> 32),
(int)offset, (int)(nbytes >> 32), (int)nbytes, flags);
+#elif __BYTE_ORDER == __LITTLE_ENDIAN
+ return ltp_syscall(__NR_sync_file_range, fd, 0, (int)offset,
+ (int)(offset >> 32), (int)nbytes, (int)(nbytes >> 32), flags);
+#endif
/* other */
#else
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] sync_file_range: add little endian support for mips
2017-10-05 11:35 [LTP] [PATCH] sync_file_range: add little endian support for mips Dejan Jovicevic
@ 2017-10-11 11:35 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-10-11 11:35 UTC (permalink / raw)
To: ltp
Hi!
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-11 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 11:35 [LTP] [PATCH] sync_file_range: add little endian support for mips Dejan Jovicevic
2017-10-11 11:35 ` Cyril Hrubis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.