From 9545bbf92e90cc3b20b3598709f3639037c34e75 Mon Sep 17 00:00:00 2001 From: sbwml Date: Wed, 9 Oct 2024 20:17:40 +0800 Subject: [PATCH] oaf: fix work for linux 6.12 [22622.309938] sysctl table check failed: oaf/(null) procname is null [22622.309965] sysctl table check failed: oaf/(null) No proc_handler [22622.309970] init log sysctl...failed Signed-off-by: sbwml --- oaf/src/af_log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oaf/src/af_log.c b/oaf/src/af_log.c index f4feb7b..6236d1b 100755 --- a/oaf/src/af_log.c +++ b/oaf/src/af_log.c @@ -59,8 +59,9 @@ static struct ctl_table oaf_table[] = { .mode = 0666, .proc_handler = proc_douintvec, }, - { - } +#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)) + {} +#endif }; static struct ctl_table oaf_root_table[] = {