aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/wireguard/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireguard/compat/compat.h b/net/wireguard/compat/compat.h
index 901b60142a2d..f96a6fb853f0 100644
--- a/net/wireguard/compat/compat.h
+++ b/net/wireguard/compat/compat.h
@@ -760,7 +760,7 @@ static inline void crypto_xor_cpy(u8 *dst, const u8 *src1, const u8 *src2,
#define hlist_add_behind(a, b) hlist_add_after(b, a)
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
#define totalram_pages() totalram_pages
#endif