make -C 8821CU -s
Copy 8821CU firmware to /lib/firmware/rtl8821cu_fw
Copy 8821CU config to /lib/firmware/rtl8821cu_config
make -C ./bluetooth_usb_driver
make[1]: se entra en el directorio '/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver'
make -C /lib/modules/6.1.0-25-amd64/build M=/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver modules
make[2]: se entra en el directorio '/usr/src/linux-headers-6.1.0-25-amd64'
CC [M] /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_check_setup_timer’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:544:17: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration]
544 | setup_timer(&(btrtl_coex.a2dp_count_timer),
| ^~~
| sk_stop_timer
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘udpsocket_send’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1011:9: error: unknown type name ‘mm_segment_t’
1011 | mm_segment_t oldfs;
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1030:25: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
1030 | oldfs = get_fs();
| ^~
| sget_fc
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1031:17: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
1031 | set_fs(KERNEL_DS);
| ^~
| sget_fc
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1031:24: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
1031 | set_fs(KERNEL_DS);
| ^~~~~
| KERNFS_NS
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1031:24: note: each undeclared identifier is reported only once for each function it appears in
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_extension_version_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1128:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla]
1128 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_btpatch_version_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1145:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla]
1145 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_afhmap_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1166:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla]
1166 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_btcoex_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1193:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla]
1193 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_btoperation_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1218:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla]
1218 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_info_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1247:9: warning: ISO C90 forbids variable length array ‘buf’ [-Wvla]
1247 | char buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_regester_to_wifi’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1284:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla]
1284 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE];
| ^~~~
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_btcoex_open’:
/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:2532:9: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
2532 | init_timer(&btrtl_coex.polling_timer);
| ^~~~~~
| init_timers
cc1: some warnings being treated as errors
make[3]: [/usr/src/linux-headers-6.1.0-25-common/scripts/Makefile.build:255: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o] Error 1
make[2]: [/usr/src/linux-headers-6.1.0-25-common/Makefile:2034: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver] Error 2
make[2]: se sale del directorio '/usr/src/linux-headers-6.1.0-25-amd64'
make[1]: [Makefile:10: all] Error 2
make[1]: se sale del directorio '/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver'
make: [Makefile:11: install] Error 2
make -C 8821CU -s Copy 8821CU firmware to /lib/firmware/rtl8821cu_fw Copy 8821CU config to /lib/firmware/rtl8821cu_config make -C ./bluetooth_usb_driver make[1]: se entra en el directorio '/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver' make -C /lib/modules/6.1.0-25-amd64/build M=/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver modules make[2]: se entra en el directorio '/usr/src/linux-headers-6.1.0-25-amd64' CC [M] /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_check_setup_timer’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:544:17: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration] 544 | setup_timer(&(btrtl_coex.a2dp_count_timer), | ^
~~| sk_stop_timer /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘udpsocket_send’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1011:9: error: unknown type name ‘mm_segment_t’ 1011 | mm_segment_t oldfs; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1030:25: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration] 1030 | oldfs = get_fs(); | ^~| sget_fc /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1031:17: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration] 1031 | set_fs(KERNEL_DS); | ^~| sget_fc /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1031:24: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’? 1031 | set_fs(KERNEL_DS); | ^~~~~ | KERNFS_NS /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1031:24: note: each undeclared identifier is reported only once for each function it appears in /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_extension_version_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1128:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla] 1128 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_btpatch_version_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1145:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla] 1145 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_afhmap_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1166:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla] 1166 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_btcoex_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1193:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla] 1193 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_btoperation_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1218:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla] 1218 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_info_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1247:9: warning: ISO C90 forbids variable length array ‘buf’ [-Wvla] 1247 | char buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_notify_regester_to_wifi’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:1284:9: warning: ISO C90 forbids variable length array ‘p_buf’ [-Wvla] 1284 | char p_buf[para_length + HCI_CMD_PREAMBLE_SIZE]; | ^~~~ /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c: In function ‘rtk_btcoex_open’: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.c:2532:9: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration] 2532 | init_timer(&btrtl_coex.polling_timer); | ^~~~~~ | init_timers cc1: some warnings being treated as errors make[3]: [/usr/src/linux-headers-6.1.0-25-common/scripts/Makefile.build:255: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver/rtk_coex.o] Error 1 make[2]: [/usr/src/linux-headers-6.1.0-25-common/Makefile:2034: /home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver] Error 2 make[2]: se sale del directorio '/usr/src/linux-headers-6.1.0-25-amd64' make[1]: [Makefile:10: all] Error 2 make[1]: se sale del directorio '/home/andres/.src/rtl/rtl8821cu_bt/bluetooth_usb_driver' make: [Makefile:11: install] Error 2