From b20f15086e4f8f57ef2596a5b8ef11c0ad63a838 Mon Sep 17 00:00:00 2001 From: Vadim Vetrov <vetrovvd@gmail.com> Date: Sun, 1 Sep 2024 23:14:22 +0300 Subject: [PATCH] Kernel versions --- Kbuild | 2 +- kmake.mk | 2 -- types.h | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Kbuild b/Kbuild index 160e2eb..0a47ec4 100644 --- a/Kbuild +++ b/Kbuild @@ -1,3 +1,3 @@ obj-m := kyoutubeUnblock.o kyoutubeUnblock-objs := kytunblock.o mangle.o quic.o utils.o kmod_utils.o -ccflags-y := -std=gnu11 -Wno-unused-variable -DKERNEL_SPACE -DDEBUG +ccflags-y := -std=gnu11 -DKERNEL_SPACE -Wno-error diff --git a/kmake.mk b/kmake.mk index 9e7bbdf..aacd391 100644 --- a/kmake.mk +++ b/kmake.mk @@ -7,8 +7,6 @@ LD := ld CFLAGS := LDFLAGS := -IPT_CFLAGS := -Wall -Wpedantic -O2 - .PHONY: kmake kload kunload kreload kclean kmclean xclean kmake: kmod diff --git a/types.h b/types.h index df0e983..c807e18 100644 --- a/types.h +++ b/types.h @@ -91,7 +91,7 @@ typedef __u64 uint64_t; * Use NETBUF_CHECK to check that buffer was properly allocated. */ #ifdef KERNEL_SPACE -#include <linux/gfp_types.h> +#include <linux/gfp.h> #define NETBUF_ALLOC(buf, buf_len) __u8* buf = kmalloc(buf_len, GFP_ATOMIC); #define NETBUF_CHECK(buf) ((buf) != NULL) #define NETBUF_FREE(buf) kfree(buf);