Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error on 5.15.0-122-generic #132~20.04.1-Ubuntu #30

Open
False-Mask opened this issue Oct 4, 2024 · 0 comments
Open

build error on 5.15.0-122-generic #132~20.04.1-Ubuntu #30

False-Mask opened this issue Oct 4, 2024 · 0 comments

Comments

@False-Mask
Copy link

$ make
make -C /lib/modules/5.15.0-122-generic/build M=/home/rose/Downloads/rtw89-BT modules
make[1]: 进入目录“/usr/src/linux-headers-5.15.0-122-generic”
CC [M] /home/rose/Downloads/rtw89-BT/btmtk.o
/home/rose/Downloads/rtw89-BT/btmtk.c: In function ‘btmtk_coredump_notify’:
/home/rose/Downloads/rtw89-BT/btmtk.c:91:7: error: ‘HCI_DEVCOREDUMP_IDLE’ undeclared (first use in this function)
91 | case HCI_DEVCOREDUMP_IDLE:
| ^~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:91:7: note: each undeclared identifier is reported only once for each function it appears in
/home/rose/Downloads/rtw89-BT/btmtk.c:94:7: error: ‘HCI_DEVCOREDUMP_ACTIVE’ undeclared (first use in this function)
94 | case HCI_DEVCOREDUMP_ACTIVE:
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:97:7: error: ‘HCI_DEVCOREDUMP_TIMEOUT’ undeclared (first use in this function); did you mean ‘HCI_DISCONN_TIMEOUT’?
97 | case HCI_DEVCOREDUMP_TIMEOUT:
| ^~~~~~~~~~~~~~~~~~~~~~~
| HCI_DISCONN_TIMEOUT
/home/rose/Downloads/rtw89-BT/btmtk.c:98:7: error: ‘HCI_DEVCOREDUMP_ABORT’ undeclared (first use in this function)
98 | case HCI_DEVCOREDUMP_ABORT:
| ^~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:99:7: error: ‘HCI_DEVCOREDUMP_DONE’ undeclared (first use in this function)
99 | case HCI_DEVCOREDUMP_DONE:
| ^~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c: At top level:
/home/rose/Downloads/rtw89-BT/btmtk.c:106:5: error: redefinition of ‘btmtk_setup_firmware_79xx’
106 | int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
/home/rose/Downloads/rtw89-BT/btmtk.h:170:12: note: previous definition of ‘btmtk_setup_firmware_79xx’ was here
170 | static int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:227:5: error: redefinition of ‘btmtk_setup_firmware’
227 | int btmtk_setup_firmware(struct hci_dev *hdev, const char *fwname,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
/home/rose/Downloads/rtw89-BT/btmtk.h:176:12: note: previous definition of ‘btmtk_setup_firmware’ was here
176 | static int btmtk_setup_firmware(struct hci_dev *hdev, const char *fwname,
| ^~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:320:5: error: redefinition of ‘btmtk_set_bdaddr’
320 | int btmtk_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
| ^~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
/home/rose/Downloads/rtw89-BT/btmtk.h:164:19: note: previous definition of ‘btmtk_set_bdaddr’ was here
164 | static inline int btmtk_set_bdaddr(struct hci_dev *hdev,
| ^~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:338:6: error: redefinition of ‘btmtk_reset_sync’
338 | void btmtk_reset_sync(struct hci_dev *hdev)
| ^~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
/home/rose/Downloads/rtw89-BT/btmtk.h:182:13: note: previous definition of ‘btmtk_reset_sync’ was here
182 | static void btmtk_reset_sync(struct hci_dev *hdev)
| ^~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c: In function ‘btmtk_reset_sync’:
/home/rose/Downloads/rtw89-BT/btmtk.c:345:8: error: implicit declaration of function ‘hci_cmd_sync_queue’; did you mean ‘hci_cmd_sync’? [-Werror=implicit-function-declaration]
345 | err = hci_cmd_sync_queue(hdev, reset_work->reset_sync, NULL, NULL);
| ^~~~~~~~~~~~~~~~~~
| hci_cmd_sync
/home/rose/Downloads/rtw89-BT/btmtk.c: At top level:
/home/rose/Downloads/rtw89-BT/btmtk.c:353:5: error: redefinition of ‘btmtk_register_coredump’
353 | int btmtk_register_coredump(struct hci_dev *hdev, const char *name,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
/home/rose/Downloads/rtw89-BT/btmtk.h:186:12: note: previous definition of ‘btmtk_register_coredump’ was here
186 | static int btmtk_register_coredump(struct hci_dev *hdev, const char *name,
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c: In function ‘btmtk_register_coredump’:
/home/rose/Downloads/rtw89-BT/btmtk.c:362:24: error: ‘HCI_DEVCOREDUMP_IDLE’ undeclared (first use in this function)
362 | data->cd_info.state = HCI_DEVCOREDUMP_IDLE;
| ^~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:365:9: error: implicit declaration of function ‘hci_devcd_register’; did you mean ‘hci_dev_reset’? [-Werror=implicit-function-declaration]
365 | return hci_devcd_register(hdev, btmtk_coredump, btmtk_coredump_hdr,
| ^~~~~~~~~~~~~~~~~~
| hci_dev_reset
/home/rose/Downloads/rtw89-BT/btmtk.c: At top level:
/home/rose/Downloads/rtw89-BT/btmtk.c:370:5: error: redefinition of ‘btmtk_process_coredump’
370 | int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
/home/rose/Downloads/rtw89-BT/btmtk.h:192:12: note: previous definition of ‘btmtk_process_coredump’ was here
192 | static int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c: In function ‘btmtk_process_coredump’:
/home/rose/Downloads/rtw89-BT/btmtk.c:379:7: error: ‘HCI_DEVCOREDUMP_IDLE’ undeclared (first use in this function)
379 | case HCI_DEVCOREDUMP_IDLE:
| ^~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:380:9: error: implicit declaration of function ‘hci_devcd_init’; did you mean ‘hci_sock_init’? [-Werror=implicit-function-declaration]
380 | err = hci_devcd_init(hdev, MTK_COREDUMP_SIZE);
| ^~~~~~~~~~~~~~
| hci_sock_init
/home/rose/Downloads/rtw89-BT/btmtk.c:386:30: error: ‘struct hci_dev’ has no member named ‘dump’
386 | schedule_delayed_work(&hdev->dump.dump_timeout,
| ^~
/home/rose/Downloads/rtw89-BT/btmtk.c:389:7: error: ‘HCI_DEVCOREDUMP_ACTIVE’ undeclared (first use in this function)
389 | case HCI_DEVCOREDUMP_ACTIVE:
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.c:391:9: error: implicit declaration of function ‘hci_devcd_append’; did you mean ‘hci_dev_open’? [-Werror=implicit-function-declaration]
391 | err = hci_devcd_append(hdev, skb);
| ^~~~~~~~~~~~~~~~
| hci_dev_open
/home/rose/Downloads/rtw89-BT/btmtk.c:402:5: error: implicit declaration of function ‘hci_devcd_complete’ [-Werror=implicit-function-declaration]
402 | hci_devcd_complete(hdev);
| ^~~~~~~~~~~~~~~~~~
In file included from /home/rose/Downloads/rtw89-BT/btmtk.c:11:
At top level:
/home/rose/Downloads/rtw89-BT/btmtk.h:192:12: warning: ‘btmtk_process_coredump’ defined but not used [-Wunused-function]
192 | static int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.h:186:12: warning: ‘btmtk_register_coredump’ defined but not used [-Wunused-function]
186 | static int btmtk_register_coredump(struct hci_dev *hdev, const char *name,
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.h:176:12: warning: ‘btmtk_setup_firmware’ defined but not used [-Wunused-function]
176 | static int btmtk_setup_firmware(struct hci_dev *hdev, const char *fwname,
| ^~~~~~~~~~~~~~~~~~~~
/home/rose/Downloads/rtw89-BT/btmtk.h:170:12: warning: ‘btmtk_setup_firmware_79xx’ defined but not used [-Wunused-function]
170 | static int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297:/home/rose/Downloads/rtw89-BT/btmtk.o] 错误 1
make[1]: *** [Makefile:1910:/home/rose/Downloads/rtw89-BT] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.15.0-122-generic”
make: *** [Makefile:34:all] 错误 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant