diff --git a/kernel/kpm/super_access.c b/kernel/kpm/super_access.c index 2a5d60f7..cf7db00c 100644 --- a/kernel/kpm/super_access.c +++ b/kernel/kpm/super_access.c @@ -70,6 +70,8 @@ struct DynamicStructInfo { #define KERNEL_VERSION_6_1 KERNEL_VERSION(6, 1, 0) +#define KERNEL_VERSION_4_14 KERNEL_VERSION(4, 14, 0) + #include <../fs/mount.h> #include @@ -112,6 +114,9 @@ DYNAMIC_STRUCT_BEGIN(kprobe) DEFINE_MEMBER(kprobe, post_handler) #if LINUX_VERSION_CODE < KERNEL_VERSION_6_1 DEFINE_MEMBER(kprobe, fault_handler) +#endif +#if LINUX_VERSION_CODE < KERNEL_VERSION_4_14 + DEFINE_MEMBER(kprobe, break_handler) #endif DEFINE_MEMBER(kprobe, flags) DYNAMIC_STRUCT_END(kprobe)