struct timeval is a 32 bit time. The Linux kernel has been made year 2038 safe and thus struct timeval is gone now. The author of the module should use ktime_t instead. See also https://patchwork.kernel.org/patch/6472551/