rtl8812au icon indicating copy to clipboard operation
rtl8812au copied to clipboard

[kernel 5.0>] compile error

Open yamal4321 opened this issue 4 years ago • 2 comments

when running make the following error appears: error: macro "access_ok" passed 3 arguments, but takes just 2 error: ‘access_ok’ undeclared (first use in this function) if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){

fixed by: -access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len) +access_ok(priv_cmd.buf, priv_cmd.total_len)

yamal4321 avatar Jul 31 '19 13:07 yamal4321

I think this error was fixed in the last releases.

gnumoksha avatar Jan 08 '20 23:01 gnumoksha

Still happening in master today.

/var/lib/dkms/8812au/4.2.3/build/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/var/lib/dkms/8812au/4.2.3/build/os_dep/linux/rtw_android.c:356:63: error: macro "access_ok" passed 3 arguments, but takes just 2
   if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
                                                               ^
/var/lib/dkms/8812au/4.2.3/build/os_dep/linux/rtw_android.c:356:8: error: ‘access_ok’ undeclared (first use in this function)
   if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
        ^~~~~~~~~
/var/lib/dkms/8812au/4.2.3/build/os_dep/linux/rtw_android.c:356:8: note: each undeclared identifier is reported only once for each function it appears in

This on 4.18.0-240.10.1.el8_3.x86_64

error10 avatar Feb 15 '21 04:02 error10