lwfinger / rtw89-BT

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

Build error on 6.9.3-76060903-generic #29

Open stefanofornari opened 2 months ago

stefanofornari commented 2 months ago

make make -C /lib/modules/6.9.3-76060903-generic/build M=/home/ste/Downloads/rtw89-BT modules make[1]: Entering directory '/usr/src/linux-headers-6.9.3-76060903-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 CC [M] /home/ste/Downloads/rtw89-BT/btusb.o /home/ste/Downloads/rtw89-BT/btusb.c: In function ‘btusb_probe’: /home/ste/Downloads/rtw89-BT/btusb.c:4346:21: error: ‘struct hci_dev’ has no member named ‘dev_type’ 4346 | hdev->dev_type = HCI_AMP; | ^~ /home/ste/Downloads/rtw89-BT/btusb.c:4346:34: error: ‘HCI_AMP’ undeclared (first use in this function); did you mean ‘HCI_UP’? 4346 | hdev->dev_type = HCI_AMP; | ^~~ | HCI_UP /home/ste/Downloads/rtw89-BT/btusb.c:4346:34: note: each undeclared identifier is reported only once for each function it appears in /home/ste/Downloads/rtw89-BT/btusb.c:4348:21: error: ‘struct hci_dev’ has no member named ‘dev_type’ 4348 | hdev->dev_type = HCI_PRIMARY; | ^~ /home/ste/Downloads/rtw89-BT/btusb.c:4348:34: error: ‘HCI_PRIMARY’ undeclared (first use in this function); did you mean ‘HCI_PRIVACY’? 4348 | hdev->dev_type = HCI_PRIMARY; | ^~~ | HCI_PRIVACY /home/ste/Downloads/rtw89-BT/btusb.c: At top level: /home/ste/Downloads/rtw89-BT/btusb.c:4842:10: error: ‘struct usb_driver’ has no member named ‘drvwrap’ 4842 | .drvwrap = { | ^~~ /home/ste/Downloads/rtw89-BT/btusb.c:4842:9: warning: braces around scalar initializer 4842 | .drvwrap = { | ^ /home/ste/Downloads/rtw89-BT/btusb.c:4842:9: note: (near initialization for ‘btusb_driver.soft_unbind’) /home/ste/Downloads/rtw89-BT/btusb.c:4843:17: error: field name not in record or union initializer 4843 | .driver = { | ^ /home/ste/Downloads/rtw89-BT/btusb.c:4843:17: note: (near initialization for ‘btusb_driver.soft_unbind’) /home/ste/Downloads/rtw89-BT/btusb.c:4843:17: warning: braces around scalar initializer /home/ste/Downloads/rtw89-BT/btusb.c:4843:17: note: (near initialization for ‘btusb_driver.soft_unbind’) /home/ste/Downloads/rtw89-BT/btusb.c:4844:25: error: field name not in record or union initializer 4844 | .coredump = btusb_coredump, | ^ /home/ste/Downloads/rtw89-BT/btusb.c:4844:25: note: (near initialization for ‘btusb_driver.soft_unbind’) /home/ste/Downloads/rtw89-BT/btusb.c:4844:37: warning: initialization of ‘unsigned char:1’ from ‘void ()(struct device )’ makes integer from pointer without a cast [-Wint-conversion] 4844 | .coredump = btusb_coredump, | ^~~~~~ /home/ste/Downloads/rtw89-BT/btusb.c:4844:37: note: (near initialization for ‘btusb_driver.soft_unbind’) /home/ste/Downloads/rtw89-BT/btusb.c:4844:37: error: initializer element is not computable at load time /home/ste/Downloads/rtw89-BT/btusb.c:4844:37: note: (near initialization for ‘btusb_driver.soft_unbind’) make[3]: [scripts/Makefile.build:244: /home/ste/Downloads/rtw89-BT/btusb.o] Error 1 make[2]: [/usr/src/linux-headers-6.9.3-76060903-generic/Makefile:1925: /home/ste/Downloads/rtw89-BT] Error 2 make[1]: [Makefile:240: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.9.3-76060903-generic' make: [Makefile:34: all] Error 2