Skip to content

Commit

Permalink
net/wireguard: Fix totalram_pages
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck439 <[email protected]>
  • Loading branch information
Firmank123 committed Apr 19, 2023
1 parent 71e399a commit 9954361
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/wireguard/compat/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9954361

Please sign in to comment.