From 662d5494b2e99d726830001aa1cc244c27e7ad2c Mon Sep 17 00:00:00 2001 From: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Date: Sat, 12 Apr 2025 16:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E6=A0=B8=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=AE=8F=E5=AE=9A=E4=B9=89=E4=B8=BA=206.1=EF=BC=8C?= =?UTF-8?q?=E5=B9=B6=E7=9B=B8=E5=BA=94=E8=B0=83=E6=95=B4=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E7=9A=84=E6=88=90=E5=91=98=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/kpm/super_access.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/kpm/super_access.c b/kernel/kpm/super_access.c index 1fd2491a..2a5d60f7 100644 --- a/kernel/kpm/super_access.c +++ b/kernel/kpm/super_access.c @@ -68,7 +68,7 @@ struct DynamicStructInfo { #include -#define KERNEL_VERSION_6_6 KERNEL_VERSION(6, 6, 0) +#define KERNEL_VERSION_6_1 KERNEL_VERSION(6, 1, 0) #include <../fs/mount.h> @@ -96,7 +96,7 @@ DYNAMIC_STRUCT_BEGIN(mnt_namespace) DEFINE_MEMBER(mnt_namespace, root) DEFINE_MEMBER(mnt_namespace, seq) DEFINE_MEMBER(mnt_namespace, mounts) -#if LINUX_VERSION_CODE < KERNEL_VERSION_6_6 +#if LINUX_VERSION_CODE < KERNEL_VERSION_6_1 DEFINE_MEMBER(mnt_namespace, count) #endif DYNAMIC_STRUCT_END(mnt_namespace) @@ -110,7 +110,7 @@ DYNAMIC_STRUCT_BEGIN(kprobe) DEFINE_MEMBER(kprobe, offset) DEFINE_MEMBER(kprobe, pre_handler) DEFINE_MEMBER(kprobe, post_handler) -#if LINUX_VERSION_CODE < KERNEL_VERSION_6_6 +#if LINUX_VERSION_CODE < KERNEL_VERSION_6_1 DEFINE_MEMBER(kprobe, fault_handler) #endif DEFINE_MEMBER(kprobe, flags) @@ -150,7 +150,7 @@ DYNAMIC_STRUCT_BEGIN(netlink_kernel_cfg) DEFINE_MEMBER(netlink_kernel_cfg, cb_mutex) DEFINE_MEMBER(netlink_kernel_cfg, bind) DEFINE_MEMBER(netlink_kernel_cfg, unbind) -#if LINUX_VERSION_CODE < KERNEL_VERSION_6_6 +#if LINUX_VERSION_CODE < KERNEL_VERSION_6_1 DEFINE_MEMBER(netlink_kernel_cfg, compare) #endif DYNAMIC_STRUCT_END(netlink_kernel_cfg)