diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 2557eb7b05617..330fea0a62959 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -30,6 +30,10 @@ struct input_event { struct timeval time; #define input_event_sec time.tv_sec #define input_event_usec time.tv_usec +#else +#if defined(__riscv) + __kernel_time64_t __sec; + __kernel_time64_t __usec; #else __kernel_ulong_t __sec; #if defined(__sparc__) && defined(__arch64__) @@ -38,6 +42,7 @@ struct input_event { #else __kernel_ulong_t __usec; #endif +#endif #define input_event_sec __sec #define input_event_usec __usec #endif