aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorblacksuan19 <i@blacksuan19.me>2020-05-20 19:50:45 +0800
committerblacksuan19 <i@blacksuan19.me>2020-05-20 19:50:45 +0800
commitd013754074e5bc2e03be8f44f0c8bf36fac19c53 (patch)
tree030179745b22c7483ac6cda93d71b5c07c065cbb /net
parent7c3b21ee4ec75286af8d579ce96ac0ecc4bfe5c4 (diff)
wireguard: fix totalram_pages usageHEADq10.0
this is the 3rd fucking time Signed-off-by: blacksuan19 <i@blacksuan19.me>
Diffstat (limited to 'net')
-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