Remove conditional compilation for kernel version 4.14 in super_access.c to simplify kprobe structure definition

This commit is contained in:
ShirkNeko
2025-04-12 19:30:55 +08:00
parent 97aaea7d86
commit 546929da55

View File

@@ -114,9 +114,6 @@ DYNAMIC_STRUCT_BEGIN(kprobe)
DEFINE_MEMBER(kprobe, post_handler)
#if LINUX_VERSION_CODE < KERNEL_VERSION_5_15
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)