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:48:02 +08:00
parent 163424673f
commit 1ea6af52a0
4 changed files with 73 additions and 27 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