Remove macro definitions for kernel versions 5.0 and 5.10 in super_access.c, and adjust conditional compilation to support kernel versions 4.14 and 5.15.
This commit is contained in:
@@ -68,12 +68,8 @@ struct DynamicStructInfo {
|
|||||||
|
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
|
|
||||||
|
|
||||||
#define KERNEL_VERSION_6_6 KERNEL_VERSION(6, 6, 0)
|
|
||||||
#define KERNEL_VERSION_6_1 KERNEL_VERSION(6, 1, 0)
|
#define KERNEL_VERSION_6_1 KERNEL_VERSION(6, 1, 0)
|
||||||
#define KERNEL_VERSION_5_15 KERNEL_VERSION(5, 15, 0)
|
#define KERNEL_VERSION_5_15 KERNEL_VERSION(5, 15, 0)
|
||||||
#define KERNEL_VERSION_5_10 KERNEL_VERSION(5, 10, 0)
|
|
||||||
#define KERNEL_VERSION_5_0 KERNEL_VERSION(5, 0, 0)
|
|
||||||
#define KERNEL_VERSION_4_14 KERNEL_VERSION(4, 14, 0)
|
#define KERNEL_VERSION_4_14 KERNEL_VERSION(4, 14, 0)
|
||||||
|
|
||||||
|
|
||||||
@@ -119,7 +115,7 @@ DYNAMIC_STRUCT_BEGIN(kprobe)
|
|||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION_5_15
|
#if LINUX_VERSION_CODE < KERNEL_VERSION_5_15
|
||||||
DEFINE_MEMBER(kprobe, fault_handler)
|
DEFINE_MEMBER(kprobe, fault_handler)
|
||||||
#endif
|
#endif
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION_5_0
|
#if LINUX_VERSION_CODE < KERNEL_VERSION_4_14
|
||||||
DEFINE_MEMBER(kprobe, break_handler)
|
DEFINE_MEMBER(kprobe, break_handler)
|
||||||
#endif
|
#endif
|
||||||
DEFINE_MEMBER(kprobe, flags)
|
DEFINE_MEMBER(kprobe, flags)
|
||||||
|
|||||||
Reference in New Issue
Block a user