On Friday 30 October 2015 14:28:28 Amitoj Kaur Chawla wrote:
32 bit systems using struct timespec will overflow in y2038, so as part of y2038 cleanup replace struct timespec with struct timespec64.
This patch replaces struct itimerspec with struct itimerspec64.
This patch also replaces getnstimeofday() and timespec_to_ns() with ktime_get_real_ns() to return the current time in nanoseconds.
Signed-off-by: Amitoj Kaur Chawla amitoj1606@gmail.com
drivers/char/mmtimer.c | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-)
My mistake, I miscategorized this driver as 'simple', it should not have been part of the Outreachy suggested topics.
Baolin Wang has worked on converting struct k_clock in the past, but his patches are not upstream yet, so you could not have guessed this correctly what parts of this driver still need to be converted after his patch.
Your patch by itself will not work, and will result in a broken build (or at least warnings), which you should have caught in compile testing.
Arnd