From 8d60ed7eacd5e972d0798d6fbaf376f31d1f6db8 Mon Sep 17 00:00:00 2001 From: basamaryan Date: Fri, 26 Sep 2025 16:47:57 -0700 Subject: [PATCH] wireguard: compat: guard __kernel_timespec to <4.14 Change-Id: Iac483a5dd995b3e25e6f10c7fc1c6f3ebd6b7796 --- net/wireguard/compat/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireguard/compat/compat.h b/net/wireguard/compat/compat.h index 91d4388824ea..af2b8d1725df 100644 --- a/net/wireguard/compat/compat.h +++ b/net/wireguard/compat/compat.h @@ -761,7 +761,7 @@ static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2, #define totalram_pages() totalram_pages #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) struct __kernel_timespec { int64_t tv_sec, tv_nsec; };