y2038: sh: remove timeval/timespec usage from headers
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.
Signed-off-by Arnd Bergmann <[email protected]>
--- arch/sh/include/uapi/asm/sockios.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/sh/include/uapi/asm/sockios.h +2 -2
@@ -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
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.
Signed-off-by Arnd Bergmann <[email protected]>
Acked-by Rich Felker <[email protected]>
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@@ -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