Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

"get_monotonic_boottime(&ts)" deprecated in kernel 4.20 -> use "ktime_get_boottime_ts64(&ts)" #19

Closed
meijkl opened this issue Jan 25, 2019 · 0 comments

Comments

@meijkl
Copy link

meijkl commented Jan 25, 2019

Hi whitebatman2,

"get_monotonic_boottime(&ts)" is deprecated in kernel 4.20.
See https://www.kernel.org/doc/html/latest/core-api/timekeeping.html "Deprecated time interfaces".

In "ioctl_cfg80211.c" I've replaced:

struct timespec ts;
get_monotonic_boottime(&ts);

with:

struct timespec64 ts;
ktime_get_boottime_ts64(&ts);

Then the DKMS module compiles properly!

Please could you adapt the code accordingly.

Best
Klaus

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants