* [LTP] [PATCH 1/1] Fix struct __kernel_old_timeval redefinition on 64bit sparc
@ 2021-01-12 23:37 Petr Vorel
2021-01-13 2:53 ` Yang Xu
0 siblings, 1 reply; 2+ messages in thread
From: Petr Vorel @ 2021-01-12 23:37 UTC (permalink / raw)
To: ltp
64bit sparc is the only arch which defines struct __kernel_old_timeval
in it's asm/posix_types.h header, thus guard it.
NOTE: previously it was guarded with __kernel_timex, which worked as well.
Fixes: a6607b81b ("syscalls: Don't pass struct timeval to tst_syscall()")
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
include/tst_timer.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/tst_timer.h b/include/tst_timer.h
index d2c3f3cb1..657c0824f 100644
--- a/include/tst_timer.h
+++ b/include/tst_timer.h
@@ -99,10 +99,12 @@ static inline long long tst_timeval_diff_ms(struct timeval t1,
typedef __kernel_long_t __kernel_old_time_t;
+#ifndef __kernel_old_timeval
struct __kernel_old_timeval {
__kernel_old_time_t tv_sec; /* seconds */
__kernel_suseconds_t tv_usec; /* microseconds */
};
+#endif
struct __kernel_old_timespec {
__kernel_old_time_t tv_sec; /* seconds */
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH 1/1] Fix struct __kernel_old_timeval redefinition on 64bit sparc
2021-01-12 23:37 [LTP] [PATCH 1/1] Fix struct __kernel_old_timeval redefinition on 64bit sparc Petr Vorel
@ 2021-01-13 2:53 ` Yang Xu
0 siblings, 0 replies; 2+ messages in thread
From: Yang Xu @ 2021-01-13 2:53 UTC (permalink / raw)
To: ltp
HI Petr
This patch is obviously ok, merged.
Best Regards
Yang Xu
> 64bit sparc is the only arch which defines struct __kernel_old_timeval
> in it's asm/posix_types.h header, thus guard it.
>
> NOTE: previously it was guarded with __kernel_timex, which worked as well.
>
> Fixes: a6607b81b ("syscalls: Don't pass struct timeval to tst_syscall()")
>
> Signed-off-by: Petr Vorel<petr.vorel@gmail.com>
> ---
> include/tst_timer.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/tst_timer.h b/include/tst_timer.h
> index d2c3f3cb1..657c0824f 100644
> --- a/include/tst_timer.h
> +++ b/include/tst_timer.h
> @@ -99,10 +99,12 @@ static inline long long tst_timeval_diff_ms(struct timeval t1,
>
> typedef __kernel_long_t __kernel_old_time_t;
>
> +#ifndef __kernel_old_timeval
> struct __kernel_old_timeval {
> __kernel_old_time_t tv_sec; /* seconds */
> __kernel_suseconds_t tv_usec; /* microseconds */
> };
> +#endif
>
> struct __kernel_old_timespec {
> __kernel_old_time_t tv_sec; /* seconds */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-13 2:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 23:37 [LTP] [PATCH 1/1] Fix struct __kernel_old_timeval redefinition on 64bit sparc Petr Vorel
2021-01-13 2:53 ` Yang Xu
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.