更新super_access.c to remove redundant macro definitions and optimize conditional compilation; use resource strings instead of hard-coded text in MoreSettings.kt; add theme color string resource in strings.xml

This commit is contained in:
ShirkNeko
2025-04-13 01:33:40 +08:00
parent 70259a5ec5
commit 06324def38
5 changed files with 5 additions and 16 deletions

View File

@@ -68,18 +68,9 @@ struct DynamicStructInfo {
#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_5_15 KERNEL_VERSION(5, 15, 0)
#define KERNEL_VERSION_5_10 KERNEL_VERSION(5, 10, 0)
#define KERNEL_VERSION_4_14 KERNEL_VERSION(4, 14, 0)
#include <../fs/mount.h>
#include <linux/mount.h>
@@ -121,9 +112,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_5_10
DEFINE_MEMBER(kprobe, break_handler)
#endif
DEFINE_MEMBER(kprobe, flags)
DYNAMIC_STRUCT_END(kprobe)
@@ -266,5 +254,4 @@ int sukisu_super_container_of(
}
return -1;
}
EXPORT_SYMBOL(sukisu_super_container_of);
EXPORT_SYMBOL(sukisu_super_container_of);