mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-18 21:02:04 +00:00
y2038: socket: remove timespec reference in timestamping
In order to remove the 'struct timespec' definition and the timespec64_to_timespec() helper function, change over the in-kernel definition of 'struct scm_timestamping' to use the __kernel_old_timespec replacement and open-code the assignment. Acked-by: Deepa Dinamani <deepa.kernel@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
75d319c06e
commit
0309f98f2f
2 changed files with 11 additions and 2 deletions
|
@ -37,9 +37,16 @@ struct sock_extended_err {
|
|||
* The timestamping interfaces SO_TIMESTAMPING, MSG_TSTAMP_*
|
||||
* communicate network timestamps by passing this struct in a cmsg with
|
||||
* recvmsg(). See Documentation/networking/timestamping.txt for details.
|
||||
* User space sees a timespec definition that matches either
|
||||
* __kernel_timespec or __kernel_old_timespec, in the kernel we
|
||||
* require two structure definitions to provide both.
|
||||
*/
|
||||
struct scm_timestamping {
|
||||
#ifdef __KERNEL__
|
||||
struct __kernel_old_timespec ts[3];
|
||||
#else
|
||||
struct timespec ts[3];
|
||||
#endif
|
||||
};
|
||||
|
||||
struct scm_timestamping64 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue