agerwick / RT28XX-RT539X-Linux-driver

2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO updated to work with Linux kernel 3.8 and above. Tested with Ubuntu 14.04 and 16.04
GNU General Public License v2.0
23 stars 9 forks source link

Cannot install on ubuntu 18.04 #12

Open lucagessi opened 4 years ago

lucagessi commented 4 years ago

I have tried to install the driver but I faced errors after sudo make install.

linux/sta_ioctl.c:2560:72: error: macro "access_ok" passed 3 arguments, but takes just 2 ../../os/linux/sta_ioctl.c:2560:10: error: ‘access_ok’ undeclared (first use in this function) if ( access_ok(VERIFY_WRITE, wrqin->u.data.pointer, sizeof(privtab)) != TRUE) /../../os/linux/sta_ioctl.c:2560:72: error: macro "access_ok" passed 3 arguments, but takes just 2 if ( access_ok(VERIFY_WRITE, wrqin->u.data.pointer, sizeof(privtab)) != TRUE) ../../os/linux/sta_ioctl.c:2573:73: error: macro "access_ok" passed 3 arguments, but takes just 2 f(access_ok(VERIFY_READ, wrqin->u.data.pointer, wrqin->u.data.length) != TRUE) ^