net: wireguard: fix compilation after vmalloc backport

"Backport new vmalloc for "large performance benefits""
This commit is contained in:
Pulkit077
2021-09-21 12:13:34 +02:00
committed by DhineshCool
parent 2cd0679c57
commit f9afc6f238

View File

@@ -774,10 +774,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;