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

Kernel 5.0 support #7

Open
erotavlasme opened this issue Aug 28, 2019 · 1 comment
Open

Kernel 5.0 support #7

erotavlasme opened this issue Aug 28, 2019 · 1 comment

Comments

@erotavlasme
Copy link

Hi,
I'm using lubuntu 18.04 64 bit with kernel 5.0.x. With the previous kernel 4.15.x, the devices worked perfectly. Now I have many compilation errors. I solved some of them, but it still does not compile.
Can you help me?
Thank you

@erotavlasme
Copy link
Author

erotavlasme commented Aug 29, 2019

I found this errors:

/home/user/rtl88x2bu-driver-master/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/home/user/rtl88x2bu-driver-master/os_dep/linux/rtw_android.c:660:62: error: macro "access_ok" passed 3 arguments, but takes just 2
  if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
                                                              ^
/home/user/rtl88x2bu-driver-master/os_dep/linux/rtw_android.c:660:7: error: ‘access_ok’ undeclared (first use in this function)
  if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
       ^~~~~~~~~
/home/user/rtl88x2bu-driver-master/os_dep/linux/rtw_android.c:660:7: note: each undeclared identifier is reported only once for each function it appears in
/home/user/rtl88x2bu-driver-master/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_systime_us’:
/home/user/rtl88x2bu-driver-master/os_dep/linux/ioctl_cfg80211.c:691:2: error: implicit declaration of function ‘get_monotonic_boottime’; did you mean ‘getboottime’? [-Werror=implicit-function-declaration]
  get_monotonic_boottime(&ts);

Regarding to macro access_ok reference. It can be fixed by changing:
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) -> if (!access_ok(priv_cmd.buf, priv_cmd.total_len))

Regarding to get_monotonic_boottime reference. It can be fixed by changing:

struct timespec ts; -> struct timespec64 ts;
get_monotonic_boottime(&ts); ->ktime_get_boottime_ts64(&ts);

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

1 participant