Skip to content

Commit

Permalink
Patched out throwing error if kernel >= 5.6.0 in compat.h
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelschmidtdev authored and sebthom committed May 4, 2024
1 parent 06889c8 commit 721b7f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ $(WIREGUARD_DIR)/src/Makefile: $(WIREGUARD_TAR)
tar -xf $(WIREGUARD_TAR)
patch $(WIREGUARD_DIR)/src/netlink.c $(ROOT_DIR)/patch/netlink.patch
patch $(WIREGUARD_DIR)/src/peerlookup.c $(ROOT_DIR)/patch/peerlookup.patch
patch $(WIREGUARD_DIR)/src/compat/compat.h $(ROOT_DIR)/patch/wireguard-linux-compat.patch
patch $(WIREGUARD_DIR)/src/compat/siphash/siphash.c $(ROOT_DIR)/patch/siphash.patch
ifeq ($(APPLY_MEMNEQ_PATCH), 1)
patch $(WIREGUARD_DIR)/src/compat/Kbuild.include $(ROOT_DIR)/patch/memneq.patch
Expand Down
13 changes: 13 additions & 0 deletions patch/wireguard-linux-compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- src/compat/compat.h 2022-06-27 12:54:37.000000000 +0200
+++ src/compat/compat.h 2024-03-31 01:44:27.000000000 +0100
@@ -37,10 +37,6 @@
#error "WireGuard requires Linux >= 3.10"
#endif

-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
-#error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required."
-#endif
-
#if defined(ISRHEL7)
#include <linux/skbuff.h>
#define headers_end headers_start

0 comments on commit 721b7f8

Please sign in to comment.