kernel: Enable macro protection for sulog
- Only enabled on kernel versions greater than 5.10.245
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user