Fix compilation errors on the newer kernels (#509)
* Fix compilation errors on the newer kernels * 更新 Makefile * 更新 Kconfig * 更新 sulog.c
This commit is contained in:
@@ -14,11 +14,9 @@
|
|||||||
#include <linux/spinlock.h>
|
#include <linux/spinlock.h>
|
||||||
#include <linux/crc32.h>
|
#include <linux/crc32.h>
|
||||||
|
|
||||||
#if __has_include(<linux/rtc.h>)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
|
||||||
#include <linux/rtc.h>
|
#include <linux/rtc.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef time64_to_tm
|
|
||||||
static inline void time64_to_tm(time64_t totalsecs, int offset, struct tm *result)
|
static inline void time64_to_tm(time64_t totalsecs, int offset, struct tm *result)
|
||||||
{
|
{
|
||||||
struct rtc_time rtc_tm;
|
struct rtc_time rtc_tm;
|
||||||
|
|||||||
Reference in New Issue
Block a user