syscalls/io_pgetevents: Use tst_syscall() instead of syscall()
PATCH 1/1 syscalls/io_pgetevents: Use tst_syscall() instead of syscall()
Use the preferred helper tst_syscall() instead of syscall(), as it also takes care of error handling.
Signed-off-by Viresh Kumar <[email protected]>
--- include/lapi/io_pgetevents.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/lapi/io_pgetevents.h +2 -1
@@ -21,7 +21,8 @@ int io_pgetevents(io_context_t ctx, long min_nr, long max_nr, struct io_event *events, struct timespec *timeout, sigset_t *sigmask) { - return syscall(__NR_io_pgetevents, ctx, min_nr, max_nr, events, timeout, sigmask); + return tst_syscall(__NR_io_pgetevents, ctx, min_nr, max_nr, events, +timeout ,sigmask ); }#endif /* HAVE_IO_PGETEVENTS */ #endif /* HAVE_LIBAIO */
Signature · 1 line
2.21.0.rc0.269.g1a574e7a288b
PATCH 1/1 syscalls/io_pgetevents: Use tst_syscall() instead of syscall()
Quoted 2 lines · Viresh Kumar
Use the preferred helper
tst_syscall()instead ofsyscall(), as it also takes care of error handling.
Hi,
It is obviously correct.
Reviewed-by Xiao Yang <[email protected]>
Best Regards,
Xiao Yang
Quoted 20 lines
Signed-off-by Viresh Kumar <[email protected]>--- include/lapi/io_pgetevents.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/lapi/io_pgetevents.h +2
-1@@ -21,7 +21,8 @@ int io_pgetevents(io_context_t ctx, long min_nr, long max_nr, struct io_event *events, struct timespec *timeout, sigset_t *sigmask) { - return syscall(__NR_io_pgetevents, ctx, min_nr, max_nr, events, timeout, sigmask); + return tst_syscall(__NR_io_pgetevents, ctx, min_nr, max_nr, events, +timeout ,sigmask ); }#endif /* HAVE_IO_PGETEVENTS */ #endif /* HAVE_LIBAIO */
PATCH 1/1 syscalls/io_pgetevents: Use tst_syscall() instead of syscall()
In reply to Viresh KumarHi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]