Skip to contentSkip to conversation

y2038: sh: remove timeval/timespec usage from headers

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 18, 2019 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 y2038: sh: remove timeval/timespec usage from headers

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.

---
 arch/sh/include/uapi/asm/sockios.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/sh/include/uapi/asm/sockios.h +2 -2
index ef18a668456d..3da561453260 100644
@@ -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 */
Signature · 1 line
2.20.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Arnd Bergmann

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.

Quoted 20 lines
---
 arch/sh/include/uapi/asm/sockios.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/sh/include/uapi/asm/sockios.h +2 -2
index ef18a668456d..3da561453260 100644
@@ -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 */
Signature · 1 line
2.20.0