* [PATCH] y2038: sh: remove timeval/timespec usage from headers
@ 2019-12-18 16:45 Arnd Bergmann
2019-12-18 16:49 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2019-12-18 16:45 UTC (permalink / raw)
To: Yoshinori Sato, Rich Felker; +Cc: Arnd Bergmann, linux-sh, linux-kernel
This header file escaped my earlier cleanups for removing
the in-kernel usage of timeval and timespec structs.
Replace them with the corresponding __kernel_old_* types.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/sh/include/uapi/asm/sockios.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/sh/include/uapi/asm/sockios.h b/arch/sh/include/uapi/asm/sockios.h
index ef18a668456d..3da561453260 100644
--- a/arch/sh/include/uapi/asm/sockios.h
+++ b/arch/sh/include/uapi/asm/sockios.h
@@ -10,7 +10,7 @@
#define SIOCSPGRP _IOW('s', 8, pid_t)
#define SIOCGPGRP _IOR('s', 9, pid_t)
-#define SIOCGSTAMP_OLD _IOR('s', 100, struct timeval) /* Get stamp (timeval) */
-#define SIOCGSTAMPNS_OLD _IOR('s', 101, struct timespec) /* Get stamp (timespec) */
+#define SIOCGSTAMP_OLD _IOR('s', 100, struct __kernel_old_timeval) /* Get stamp (timeval) */
+#define SIOCGSTAMPNS_OLD _IOR('s', 101, struct __kernel_old_timespec) /* Get stamp (timespec) */
#endif /* __ASM_SH_SOCKIOS_H */
--
2.20.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] y2038: sh: remove timeval/timespec usage from headers
2019-12-18 16:45 [PATCH] y2038: sh: remove timeval/timespec usage from headers Arnd Bergmann
@ 2019-12-18 16:49 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2019-12-18 16:49 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Yoshinori Sato, linux-sh, linux-kernel
On Wed, Dec 18, 2019 at 05:45:11PM +0100, Arnd Bergmann wrote:
> This header file escaped my earlier cleanups for removing
> the in-kernel usage of timeval and timespec structs.
>
> Replace them with the corresponding __kernel_old_* types.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rich Felker <dalias@libc.org>
> ---
> arch/sh/include/uapi/asm/sockios.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/sh/include/uapi/asm/sockios.h b/arch/sh/include/uapi/asm/sockios.h
> index ef18a668456d..3da561453260 100644
> --- a/arch/sh/include/uapi/asm/sockios.h
> +++ b/arch/sh/include/uapi/asm/sockios.h
> @@ -10,7 +10,7 @@
> #define SIOCSPGRP _IOW('s', 8, pid_t)
> #define SIOCGPGRP _IOR('s', 9, pid_t)
>
> -#define SIOCGSTAMP_OLD _IOR('s', 100, struct timeval) /* Get stamp (timeval) */
> -#define SIOCGSTAMPNS_OLD _IOR('s', 101, struct timespec) /* Get stamp (timespec) */
> +#define SIOCGSTAMP_OLD _IOR('s', 100, struct __kernel_old_timeval) /* Get stamp (timeval) */
> +#define SIOCGSTAMPNS_OLD _IOR('s', 101, struct __kernel_old_timespec) /* Get stamp (timespec) */
>
> #endif /* __ASM_SH_SOCKIOS_H */
> --
> 2.20.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-18 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 16:45 [PATCH] y2038: sh: remove timeval/timespec usage from headers Arnd Bergmann
2019-12-18 16:49 ` Rich Felker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).