From 3933de0ae989e710081b118c885ece93cf88b2b2 Mon Sep 17 00:00:00 2001 From: MorStar <101636957+UzakiMorStar@users.noreply.github.com> Date: Sat, 1 Nov 2025 14:47:30 +0800 Subject: [PATCH] Fix compilation errors on the newer kernels (#509) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix compilation errors on the newer kernels * 更新 Makefile * 更新 Kconfig * 更新 sulog.c --- kernel/sulog.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sulog.c b/kernel/sulog.c index bdc2e9a1..53c52252 100644 --- a/kernel/sulog.c +++ b/kernel/sulog.c @@ -14,11 +14,9 @@ #include #include -#if __has_include() +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) #include -#endif -#ifndef time64_to_tm static inline void time64_to_tm(time64_t totalsecs, int offset, struct tm *result) { struct rtc_time rtc_tm;