Fix compilation errors on the newer kernels (#509)

* Fix compilation errors on the newer kernels

* 更新 Makefile

* 更新 Kconfig

* 更新 sulog.c
This commit is contained in:
MorStar
2025-11-01 14:47:30 +08:00
committed by GitHub
parent 4b1bbda3b1
commit 3933de0ae9

View File

@@ -14,11 +14,9 @@
#include <linux/spinlock.h>
#include <linux/crc32.h>
#if __has_include(<linux/rtc.h>)
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
#include <linux/rtc.h>
#endif
#ifndef time64_to_tm
static inline void time64_to_tm(time64_t totalsecs, int offset, struct tm *result)
{
struct rtc_time rtc_tm;