lwfinger / rtw89-BT

Out-of-kernel driver for Realtek BT devices found in rtw89 devides.
67 stars 9 forks source link

Error during compiling #1

Open alexleosumy opened 2 years ago

alexleosumy commented 2 years ago

I am ready to be your tester :) I really need BT for my laptop

make                                                                                                                                       1 ✘  10:39:37   
make -C /lib/modules/5.15.49-1-MANJARO/build M=/home/alex/rtw89-BT modules
make[1]: Entering directory '/usr/lib/modules/5.15.49-1-MANJARO/build'
  CC [M]  /home/alex/rtw89-BT/btusb.o
/home/alex/rtw89-BT/btusb.c: In function ‘btusb_intr_complete’:
/home/alex/rtw89-BT/btusb.c:1029:25: error: implicit declaration of function ‘hci_cmd_sync_cancel’; did you mean ‘hci_cmd_sync’? [-Werror=implicit-function-declaration]
 1029 |                         hci_cmd_sync_cancel(hdev, -err);
      |                         ^~~~~~~~~~~~~~~~~~~
      |                         hci_cmd_sync
/home/alex/rtw89-BT/btusb.c: In function ‘btusb_setup_csr’:
/home/alex/rtw89-BT/btusb.c:2083:25: error: ‘HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL’ undeclared (first use in this function)
 2083 |                 set_bit(HCI_QUIRK_BROKEN_FILTER_CLEAR_ALL, &hdev->quirks);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alex/rtw89-BT/btusb.c:2083:25: note: each undeclared identifier is reported only once for each function it appears in
/home/alex/rtw89-BT/btusb.c: In function ‘btusb_setup_qca’:
/home/alex/rtw89-BT/btusb.c:3364:17: error: ‘HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN’ undeclared (first use in this function)
 3364 |         set_bit(HCI_QUIRK_BROKEN_ENHANCED_SETUP_SYNC_CONN, &hdev->quirks);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alex/rtw89-BT/btusb.c: In function ‘btusb_probe’:
/home/alex/rtw89-BT/btusb.c:3734:13: error: ‘struct hci_dev’ has no member named ‘wakeup’
 3734 |         hdev->wakeup = btusb_wakeup;
      |             ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:288: /home/alex/rtw89-BT/btusb.o] Error 1
make[1]: *** [Makefile:1871: /home/alex/rtw89-BT] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.49-1-MANJARO/build'
make: *** [Makefile:25: all] Error 2

Is it an error from my side?

lwfinger commented 2 years ago

No. As I wrote in README.md, I had not checked building with kernels older than 5.19, and I asked users with build errors to report them here. I will fix builds back through 5.15 and report back.

lwfinger commented 2 years ago

I have now fixed builds for kernels 5.15+. There are many errors when building with 5.14, thus I do not expect to backport beyond 5.15. Do a 'git pull' and you should be OK.

alexleosumy commented 2 years ago

Compiled success. But console does not show any Bluetooth devices

[bluetooth]# scan on
Discovery started
[CHG] Controller 34:6F:24:D3:98:D1 Discovering: yes
[bluetooth]# 

Via GUI same problem - list BT device is empty