From b7f4d80fbc3961c88435e4fc9d538a92cb80cb55 Mon Sep 17 00:00:00 2001 From: idkwhoiam322 Date: Sun, 9 Feb 2020 00:06:38 +0530 Subject: [PATCH] wireguard: compat: Adapt for upstream mm commit 3b3cecea215895b2235f2eb70e9e6859b379630a: "mm: convert totalram_pages and totalhigh_pages variables to atomic" Signed-off-by: Adithya R --- net/wireguard/compat/compat.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/wireguard/compat/compat.h b/net/wireguard/compat/compat.h index d166ac235a99..bcdc82099b3d 100644 --- a/net/wireguard/compat/compat.h +++ b/net/wireguard/compat/compat.h @@ -777,10 +777,6 @@ 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) && !defined(ISRHEL8) -#define totalram_pages() totalram_pages -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) struct __kernel_timespec { int64_t tv_sec, tv_nsec;