From 2ce496167ce353a2518384f353b71559db0b3afd Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 20 Nov 2025 11:09:11 -0800 Subject: [PATCH] Remove __kernel_old_timeval compat for el7. Signed-off-by: Auke Kok --- kmod/src/Makefile.kernelcompat | 8 -------- kmod/src/kernelcompat.h | 5 ----- 2 files changed, 13 deletions(-) diff --git a/kmod/src/Makefile.kernelcompat b/kmod/src/Makefile.kernelcompat index da99df8e..6be7d359 100644 --- a/kmod/src/Makefile.kernelcompat +++ b/kmod/src/Makefile.kernelcompat @@ -109,14 +109,6 @@ ifneq (,$(shell grep 'int tcp_sock_set_keepintvl' include/linux/tcp.h)) ccflags-y += -DKC_HAVE_TCP_SET_SOCKFN endif -# -# v4.16-rc3-13-ga84d1169164b -# -# Fixes y2038 issues with struct timeval. -ifneq (,$(shell grep -s '^struct __kernel_old_timeval .' include/uapi/linux/time_types.h)) -ccflags-y += -DKC_KERNEL_OLD_TIMEVAL_STRUCT -endif - # # v5.19-rc4-52-ge33c267ab70d # diff --git a/kmod/src/kernelcompat.h b/kmod/src/kernelcompat.h index 9b9d710f..2c4ca6fb 100644 --- a/kmod/src/kernelcompat.h +++ b/kmod/src/kernelcompat.h @@ -88,11 +88,6 @@ static inline struct bio *kc_bio_alloc(struct block_device *bdev, unsigned short #define fiemap_prep(inode, fieinfo, start, len, flags) fiemap_check_flags(fieinfo, flags) #endif -#ifndef KC_KERNEL_OLD_TIMEVAL_STRUCT -#define __kernel_old_timeval timeval -#define ns_to_kernel_old_timeval(ktime) ns_to_timeval(ktime.tv64) -#endif - #ifdef KC_SOCK_SET_SNDTIMEO #include static inline int kc_sock_set_sndtimeo(struct socket *sock, s64 secs)