On Mon, 20 Mar 2017, Deepa Dinamani wrote:
-static int ptp_clock_getres(struct posix_clock *pc, struct timespec *tp) +static int ptp_clock_getres(struct posix_clock *pc, struct timespec64 *tp)
That's a pretty pointless exercise. getres() returns the resolution of the clock which obviously can never be affected by Y2038.
True, tv_sec does not need to be more than 32 bits here. We plan to limit the use of struct timespec to existing user interfaces only.
This is an existing user space interface and there is no need to change it at all.
Thanks,
tglx