brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.6k stars 462 forks source link

Make failed #170

Open riodevelop opened 2 years ago

riodevelop commented 2 years ago

Hello! Cant build latest version of driver (tried with dkms and with just make):

  CC [M]  /root/last_ver/8821cu-20210118-main/hal/hal_mp.o
  CC [M]  /root/last_ver/8821cu-20210118-main/hal/hal_mcc.o
  CC [M]  /root/last_ver/8821cu-20210118-main/hal/hal_hci/hal_usb.o
/root/last_ver/8821cu-20210118-main/hal/hal_hci/hal_usb.c: In function ‘usb_init_recv_priv’:
/root/last_ver/8821cu-20210118-main/hal/hal_hci/hal_usb.c:29:8: error: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(long unsigned int)’ [-Werror=cast-function-type]
   29 |        (void(*)(unsigned long))usb_recv_tasklet,
      |        ^
cc1: all warnings being treated as errors
make[3]: *** [/root/last_ver/8821cu-20210118-main/hal/hal_hci/hal_usb.o] Error 1
make[2]: *** [/root/last_ver/8821cu-20210118-main] Error 2
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory `/usr/src/kernels/5.17.2-1.el7.elrepo.x86_64'
make: *** [modules] Error 2

Linux version 5.17.2-1.el7.elrepo.x86_64 (mockbuild@Build64R7) (gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2), GNU ld version 2.32-16.el7) #1 SMP PREEMPT Wed Apr 6 16:49:21 EDT 2022