kernel: Enable macro protection for sulog

- Only enabled on kernel versions greater than 5.10.245
This commit is contained in:
ShirkNeko
2025-10-25 00:45:43 +08:00
parent b9a84a15bc
commit 64ee09fd12
4 changed files with 66 additions and 17 deletions

View File

@@ -18,6 +18,7 @@
#include "sulog.h"
#include "ksu.h"
#if __SULOG_GATE
struct dedup_entry dedup_tbl[SULOG_COMM_LEN];
DEFINE_SPINLOCK(dedup_lock);
static LIST_HEAD(sulog_queue);
@@ -418,4 +419,5 @@ void ksu_sulog_exit(void)
mutex_unlock(&sulog_mutex);
pr_info("sulog: cleaned up successfully\n");
}
}
#endif // __SULOG_GATE