wireguard: compat: Adapt for upstream mm commit

3b3cecea215895b2235f2eb70e9e6859b379630a: "mm: convert totalram_pages and totalhigh_pages variables to atomic"

Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
idkwhoiam322 2020-02-09 00:06:38 +05:30 committed by Adithya R
parent 0fce4ce724
commit b7f4d80fbc

View File

@ -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;