Android Linux 5.10 kernel do_gettimeofday function prompt does not exist.
Solution: Replace with ktime_get_real_ts64 function.
Specific examples:
Code before modification:
struct timeval time_now;
struct rtc_time tm;
do_gettimeofday(&time_now);
rtc_time_to_tm(time_now.tv_sec, &tm);
Code after modification:
struct timespec64 ts64;
struct rtc_time tm;
ktime_get_real_ts64(&ts64);
tm = rtc_ktime_to_tm(ts64.tv_sec);
Read More:
- [Solved] linux kernel load driver Error: module verification failed: signature and/or required key missing – tainting kernel
- Ubuntu: How to deal with the fatal: the remote end hung up unexpected error of GIT clone Android kernel
- [ERROR SystemVerification]: failed to parse kernel config: unable to load kernel module: “configs“
- Linux: How to Solve Rabbitmq Plug-in Install Error
- How to Solve Linux Error: -bash: unzip: command not found
- Linux: How to Solve vim ~/.bashrc Execute Error
- Linux: How to Solve sudo operate Error
- How to Solve C++ Error: “no matching function for call to ‘atoi/atof’”
- Linux: How to Solve pyperclip Module Error
- How to Solve No approve protocol error when running kettle on Linux
- How to Solve Linux error – rsyncd synchronous error 1
- [Solved] Linux Kernel Compile Error: make menuconfig‘ requires the ncurses libraries
- [Solved] Linux shell Script Error: syntax error near unexpected token `do
- Linux: How to Fix undefined reference to `itoa’
- How to Create Threads in Linux
- linux C called object ‘maze’ is not a function or function pointer printf(“%d\t“, maze(i, j))
- Android: How to Start App Automatically
- linux(aarch64): How to Fix kettle Startup Error Issue
- How to Fix Ubuntu(Linux) mount error(22)
- Linux Drive Error: Error: function declaration isn’t a prototype