rtl8188eus icon indicating copy to clipboard operation
rtl8188eus copied to clipboard

make file error

Open shuq007 opened this issue 4 years ago • 4 comments

### The drivers for the device on Linux and Windows are not working

After using git close command we got these details: git clone -b v5.2.2.4 https://github.com/quickreflex/rtl8188eus.git Cloning into 'rtl8188eus'... remote: Enumerating objects: 1312, done. remote: Total 1312 (delta 0), reused 0 (delta 0), pack-reused 1312 Receiving objects: 100% (1312/1312), 4.64 MiB | 36.00 KiB/s, done. Resolving deltas: 100% (777/777), done.

when we use make all command we stuck up here and got the following error: /home/admin/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .ndo_select_queue = rtw_select_queue, ^~~~~~~~~~~~~~~~

shuq007 avatar Oct 18 '19 02:10 shuq007

Yup, same problem here. It looks like a field was removed from the ndo_select_queue signature in kernels >=5.2 and rtw_select_queue is no longer compatible. I naively tried to remove the same field from the latter, but it's not that simple (compiles but crashes).

StefanosAstaras avatar Nov 13 '19 08:11 StefanosAstaras

Same error on 5.3.0-26-generic #28-Ubuntu

iandol avatar Jan 09 '20 05:01 iandol

Adding EXTRA_CFLAGS += -Wno-incompatible-pointer-types to Makefile solves the problem

cstayyab avatar Jan 29 '20 14:01 cstayyab

The change above in makefile works, but now I have this problem when running make all:

error: macro "access_ok" passed 3 arguments, but takes just 2 if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {

error: ‘access_ok’ undeclared (first use in this function) if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {

mriso79 avatar Feb 27 '20 10:02 mriso79