Bluetooth: HCI: Remove HCI_AMP support
Subsystems (4)
Luiz Augusto von Dentz
maintainerPATCH 1/1 Bluetooth: HCI: Remove HCI_AMP support
From: Luiz Augusto von Dentz <[email protected]>
Since BT_HS has been remove HCI_AMP controllers no longer has any use so remove it along with the capability of creating AMP controllers.
--- drivers/bluetooth/btmrvl_main.c | 7 -- drivers/bluetooth/btsdio.c | 8 -- drivers/bluetooth/btusb.c | 5 - drivers/bluetooth/hci_bcm4377.c | 1 - drivers/bluetooth/hci_ldisc.c | 6 -- drivers/bluetooth/hci_serdev.c | 5 - drivers/bluetooth/hci_uart.h | 1 - drivers/bluetooth/hci_vhci.c | 5 +- drivers/bluetooth/virtio_bt.c | 2 - include/net/bluetooth/hci.h | 111 ---------------------- include/net/bluetooth/hci_core.h | 46 +--------- include/uapi/linux/virtio_bt.h | 1 - net/bluetooth/hci_conn.c | 3 +- net/bluetooth/hci_core.c | 132 ++------------------------- net/bluetooth/hci_event.c | 152 ------------------------------- net/bluetooth/hci_sock.c | 5 +- net/bluetooth/hci_sync.c | 112 +---------------------- net/bluetooth/l2cap_core.c | 24 +---- net/bluetooth/mgmt.c | 84 ++++++----------- 19 files changed, 51 insertions(+), 659 deletions(-)
drivers/bluetooth/btmrvl_main.c +0 -7
@@ -121,13 +121,6 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb) ((event->data[2 ] ==MODULE_BROUGHT_UP ) || (event->data[2 ] ==MODULE_ALREADY_UP )) ? "Bring-up succeed" : "Bring-up failed"); - -if (event->length >3 && event->data[3 ]) - priv->btmrvl_dev.dev_type =HCI_AMP ; -else - priv->btmrvl_dev.dev_type =HCI_PRIMARY ; - -BT_DBG ("dev_type: %d" , priv->btmrvl_dev.dev_type); }else if (priv->btmrvl_dev.sendcmdflag && event->data[1 ] ==MODULE_SHUTDOWN_REQ ) { BT_DBG("EVENT:%s", (event->data[2]) ?
drivers/bluetooth/btsdio.c +0 -8
@@ -32,9 +32,6 @@ static const struct sdio_device_id btsdio_table[] = {/* Generic Bluetooth Type-B SDIO device */ { SDIO_DEVICE_CLASS(SDIO_CLASS_BT_B) }, -/* Generic Bluetooth AMP controller */ - { SDIO_DEVICE_CLASS(SDIO_CLASS_BT_AMP) }, - { }/* Terminating entry */ };
@@ -319,11 +316,6 @@ static int btsdio_probe(struct sdio_func *func, hdev->bus =HCI_SDIO ;hci_set_drvdata (hdev, data); -if (id->class ==SDIO_CLASS_BT_AMP ) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; - data->hdev = hdev;SET_HCIDEV_DEV (hdev, &func->dev);
drivers/bluetooth/btusb.c +0 -5
@@ -4359,11 +4359,6 @@ static int btusb_probe(struct usb_interface *intf, hdev->bus =HCI_USB ;hci_set_drvdata (hdev, data); -if (id->driver_info &BTUSB_AMP ) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; - data->hdev = hdev;SET_HCIDEV_DEV (hdev, &intf->dev);
drivers/bluetooth/hci_bcm4377.c +0 -1
@@ -2361,7 +2361,6 @@ static int bcm4377_probe(struct pci_dev *pdev, const struct pci_device_id *id) bcm4377->hdev = hdev; hdev->bus =HCI_PCI ; - hdev->dev_type =HCI_PRIMARY ; hdev->open = bcm4377_hci_open; hdev->close = bcm4377_hci_close; hdev->send = bcm4377_hci_send_frame;
drivers/bluetooth/hci_ldisc.c +0 -6
@@ -667,11 +667,6 @@ static int hci_uart_register_dev(struct hci_uart *hu)if (!test_bit (HCI_UART_RESET_ON_INIT , &hu->hdev_flags))set_bit (HCI_QUIRK_RESET_ON_CLOSE , &hdev->quirks); -if (test_bit (HCI_UART_CREATE_AMP , &hu->hdev_flags)) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; -/* Only call open() for the protocol after hdev is fully initialized as * open() (or a timer/workqueue it starts) may attempt to reference it. */
@@ -722,7 +717,6 @@ static int hci_uart_set_flags(struct hci_uart *hu, unsigned long flags) {unsigned long valid_flags =BIT (HCI_UART_RAW_DEVICE ) |BIT (HCI_UART_RESET_ON_INIT ) | -BIT (HCI_UART_CREATE_AMP ) |BIT (HCI_UART_INIT_PENDING ) |BIT (HCI_UART_EXT_CONFIG ) |BIT (HCI_UART_VND_DETECT );
drivers/bluetooth/hci_serdev.c +0 -5
@@ -366,11 +366,6 @@ int hci_uart_register_device_priv(struct hci_uart *hu,if (test_bit (HCI_UART_EXT_CONFIG , &hu->hdev_flags))set_bit (HCI_QUIRK_EXTERNAL_CONFIG , &hdev->quirks); -if (test_bit (HCI_UART_CREATE_AMP , &hu->hdev_flags)) - hdev->dev_type =HCI_AMP ; -else - hdev->dev_type =HCI_PRIMARY ; -if (test_bit (HCI_UART_INIT_PENDING , &hu->hdev_flags))return 0 ;
drivers/bluetooth/hci_uart.h +0 -1
@@ -37,7 +37,6 @@#define HCI_UART_RAW_DEVICE 0#define HCI_UART_RESET_ON_INIT 1 -#define HCI_UART_CREATE_AMP 2#define HCI_UART_INIT_PENDING 3#define HCI_UART_EXT_CONFIG 4#define HCI_UART_VND_DETECT 5
drivers/bluetooth/hci_vhci.c +2 -3
@@ -392,7 +392,7 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode)/* bits 0-1 are dev_type (Primary or AMP) */ dev_type = opcode &0x03 ; -if (dev_type !=HCI_PRIMARY && dev_type !=HCI_AMP ) +if (dev_type !=HCI_PRIMARY )return -EINVAL ;/* bits 2-5 are reserved (must be zero) */
@@ -412,7 +412,6 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode) data->hdev = hdev; hdev->bus =HCI_VIRTUAL ; - hdev->dev_type = dev_type;hci_set_drvdata (hdev, data); hdev->open = vhci_open_dev;
@@ -634,7 +633,7 @@ static void vhci_open_timeout(struct work_struct *work) struct vhci_data *data = container_of(work, struct vhci_data, open_timeout.work); -vhci_create_device (data, amp ?HCI_AMP :HCI_PRIMARY ); +vhci_create_device (data,HCI_PRIMARY ); }static int vhci_open (struct inode *inode,struct file *file)
drivers/bluetooth/virtio_bt.c +0 -2
@@ -274,7 +274,6 @@ static int virtbt_probe(struct virtio_device *vdev)switch (type) {case VIRTIO_BT_CONFIG_TYPE_PRIMARY : -case VIRTIO_BT_CONFIG_TYPE_AMP :break ;default :return -EINVAL ;
@@ -303,7 +302,6 @@ static int virtbt_probe(struct virtio_device *vdev) vbt->hdev = hdev; hdev->bus =HCI_VIRTIO ; - hdev->dev_type = type;hci_set_drvdata (hdev, vbt); hdev->open = virtbt_open;
include/net/bluetooth/hci.h +0 -111
141 lines not on this page · raw message
include/net/bluetooth/hci_core.h +1 -45
118 lines not on this page · raw message
include/uapi/linux/virtio_bt.h +0 -1
@@ -13,7 +13,6 @@enum virtio_bt_config_type {VIRTIO_BT_CONFIG_TYPE_PRIMARY =0 , -VIRTIO_BT_CONFIG_TYPE_AMP =1 , };enum virtio_bt_config_vendor {
net/bluetooth/hci_conn.c +1 -2
@@ -1171,8 +1171,7 @@ struct hci_dev *hci_get_route(bdaddr_t *dst, bdaddr_t *src, uint8_t src_type)list_for_each_entry (d, &hci_dev_list, list) {if (!test_bit (HCI_UP , &d->flags) || -hci_dev_test_flag (d,HCI_USER_CHANNEL ) || - d->dev_type !=HCI_PRIMARY ) +hci_dev_test_flag (d,HCI_USER_CHANNEL ))continue ;/* Simple routing:
net/bluetooth/hci_core.c +10 -122
199 lines not on this page · raw message
net/bluetooth/hci_event.c +0 -152
194 lines not on this page · raw message
net/bluetooth/hci_sock.c +1 -4
@@ -485,7 +485,7 @@ static struct sk_buff *create_monitor_event(struct hci_dev *hdev, int event)return NULL ; ni =skb_put (skb,HCI_MON_NEW_INDEX_SIZE ); - ni->type = hdev->dev_type; + ni->type =HCI_PRIMARY ; ni->bus = hdev->bus;bacpy (&ni->bdaddr, &hdev->bdaddr); memcpy_and_pad(ni->name, sizeof(ni->name), hdev->name,
@@ -1007,9 +1007,6 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,if (hci_dev_test_flag (hdev,HCI_UNCONFIGURED ))return -EOPNOTSUPP ; -if (hdev->dev_type !=HCI_PRIMARY ) -return -EOPNOTSUPP ; -switch (cmd) {case HCISETRAW :if (!capable (CAP_NET_ADMIN ))
net/bluetooth/hci_sync.c +4 -108
187 lines not on this page · raw message
net/bluetooth/l2cap_core.c +5 -19
@@ -3940,9 +3940,8 @@ static inline int l2cap_command_rej(struct l2cap_conn *conn,return 0 ; } -static void l2cap_connect (struct l2cap_conn *conn, -struct l2cap_cmd_hdr *cmd, -u8 *data,u8 rsp_code,u8 amp_id) +static void l2cap_connect (struct l2cap_conn *conn,struct l2cap_cmd_hdr *cmd, +u8 *data,u8 rsp_code) {struct l2cap_conn_req *req = (struct l2cap_conn_req *) data;struct l2cap_conn_rsp rsp;
@@ -4021,17 +4020,8 @@ static void l2cap_connect(struct l2cap_conn *conn, status =L2CAP_CS_AUTHOR_PEND ; chan->ops->defer (chan); }else { -/* Force pending result for AMP controllers. -* The connection will succeed after the -* physical link is up. -*/ -if (amp_id ==AMP_ID_BREDR ) { -l2cap_state_change (chan,BT_CONFIG ); - result =L2CAP_CR_SUCCESS ; - }else { -l2cap_state_change (chan,BT_CONNECT2 ); - result =L2CAP_CR_PEND ; - } +l2cap_state_change (chan,BT_CONNECT2 ); + result =L2CAP_CR_PEND ; status =L2CAP_CS_NO_INFO ; } }else {
@@ -4096,7 +4086,7 @@ static int l2cap_connect_req(struct l2cap_conn *conn,mgmt_device_connected (hdev, hcon,NULL ,0 );hci_dev_unlock (hdev); -l2cap_connect (conn, cmd, data,L2CAP_CONN_RSP ,0 ); +l2cap_connect (conn, cmd, data,L2CAP_CONN_RSP );return 0 ; }
@@ -7501,10 +7491,6 @@ void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags)struct l2cap_conn *conn = hcon->l2cap_data;int len; -/* For AMP controller do not create l2cap conn */ -if (!conn && hcon->hdev->dev_type !=HCI_PRIMARY ) - goto drop; -if (!conn) conn =l2cap_conn_add (hcon);
net/bluetooth/mgmt.c +27 -57
133 lines not on this page · raw message
Signature · 1 line
2.44.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=850967
---Test result---
Test Summary:
CheckPatch PASS 3.87 seconds GitLint PASS 0.27 seconds SubjectPrefix PASS 0.09 seconds BuildKernel FAIL 26.93 seconds CheckAllWarning FAIL 29.54 seconds CheckSparse FAIL 33.86 seconds CheckSmatch FAIL 34.60 seconds BuildKernel32 FAIL 25.97 seconds TestRunnerSetup PASS 518.92 seconds TestRunner_l2cap-tester PASS 20.45 seconds TestRunner_iso-tester PASS 33.46 seconds TestRunner_bnep-tester PASS 4.67 seconds TestRunner_mgmt-tester FAIL 114.50 seconds TestRunner_rfcomm-tester PASS 7.45 seconds TestRunner_sco-tester PASS 15.08 seconds TestRunner_ioctl-tester PASS 7.91 seconds TestRunner_mesh-tester PASS 5.90 seconds TestRunner_smp-tester PASS 6.97 seconds TestRunner_userchan-tester PASS 5.01 seconds IncrementalBuild FAIL 25.98 seconds
Details
##############################
Test: BuildKernel - FAIL
Desc: Build Kernel for Bluetooth
Output:
drivers/bluetooth/btmrvl_main.c: In function ‘btmrvl_register_hdev’:drivers/bluetooth/btmrvl_main.c:682:6: error: ‘struct hci_dev’ has no member named ‘dev_type’
682 | hdev->dev_type = priv->btmrvl_dev.dev_type;
| ^~make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/btmrvl_main.o] Error 1 make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: CheckAllWarning - FAIL
Desc: Run linux kernel with all warning enabled
Output:
drivers/bluetooth/btmrvl_main.c: In function ‘btmrvl_register_hdev’:drivers/bluetooth/btmrvl_main.c:682:6: error: ‘struct hci_dev’ has no member named ‘dev_type’
682 | hdev->dev_type = priv->btmrvl_dev.dev_type;
| ^~make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/btmrvl_main.o] Error 1 make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: CheckSparse - FAIL
Desc: Run sparse tool with linux kernel
Output:
net/bluetooth/af_bluetooth.c:226:25: warning: context imbalance in 'bt_accept_enqueue' - different lock contexts for basic block drivers/bluetooth/hci_ag6xx.c:257:24: warning: restricted __le32 degrades to integer drivers/bluetooth/hci_mrvl.c:170:23: warning: restricted __le16 degrades to integer drivers/bluetooth/hci_mrvl.c:203:23: warning: restricted __le16 degrades to integer net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):./include/net/bluetooth/hci.h:2588:47: warning: array of flexible structures ./include/net/bluetooth/hci.h:2674:43: warning: array of flexible structures drivers/bluetooth/btmrvl_main.c: In function ‘btmrvl_register_hdev’:drivers/bluetooth/btmrvl_main.c:682:6: error: ‘struct hci_dev’ has no member named ‘dev_type’
682 | hdev->dev_type = priv->btmrvl_dev.dev_type;
| ^~make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/btmrvl_main.o] Error 1 make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[2]: *** Waiting for unfinished jobs.... net/bluetooth/hci_codec.c: note: in included file:./include/net/bluetooth/hci_core.h:149:35: warning: array of flexible structures net/bluetooth/sco.c: note: in included file:./include/net/bluetooth/hci_core.h:149:35: warning: array of flexible structures make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139 make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139 make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: BuildKernel32 - FAIL
Desc: Build 32bit Kernel for Bluetooth
Output:
drivers/bluetooth/btmrvl_main.c: In function ‘btmrvl_register_hdev’:drivers/bluetooth/btmrvl_main.c:682:6: error: ‘struct hci_dev’ has no member named ‘dev_type’
682 | hdev->dev_type = priv->btmrvl_dev.dev_type;
| ^~make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/btmrvl_main.o] Error 1 make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 489 (99.4%), Failed: 1, Not Run: 2
Failed Test Cases
LL Privacy - Add Device 6 (RL is full) Failed 0.186 seconds
##############################
Test: IncrementalBuild - FAIL
Desc: Incremental build with the patches in the series Output:
[v1] Bluetooth: HCI: Remove HCI_AMP support
drivers/bluetooth/btmrvl_main.c: In function ‘btmrvl_register_hdev’:drivers/bluetooth/btmrvl_main.c:682:6: error: ‘struct hci_dev’ has no member named ‘dev_type’
682 | hdev->dev_type = priv->btmrvl_dev.dev_type;
| ^~make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/btmrvl_main.o] Error 1 make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2 make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
---
Regards,
Linux Bluetooth
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Luiz,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20240506]
[cannot apply to v6.9-rc7 v6.9-rc6 v6.9-rc5 linus/master v6.9-rc7] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Luiz-Augusto-von-Dentz/Bluetooth-HCI-Remove-HCI_AMP-support/20240507-063936 base: next-20240506 patch link: https://lore.kernel.org/r/20240506223758.460710-1-luiz.dentz%40gmail.com patch subject: [PATCH v1] Bluetooth: HCI: Remove HCI_AMP support config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240507/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240507/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/bluetooth/btmrvl_main.c: In function 'btmrvl_register_hdev':
>> drivers/bluetooth/btmrvl_main.c:682:13: error: 'struct hci_dev' has no member named 'dev_type'
682 | hdev->dev_type = priv->btmrvl_dev.dev_type;
| ^~
--
drivers/bluetooth/btrsi.c: In function 'rsi_hci_attach':
>> drivers/bluetooth/btrsi.c:137:13: error: 'struct hci_dev' has no member named 'dev_type'
137 | hdev->dev_type = HCI_PRIMARY;
| ^~vim +682 drivers/bluetooth/btmrvl_main.c
132ff4e5fa8dfb Bing Zhao 2009-06-02 656
64061607eab7cb Bing Zhao 2010-03-03 657 int btmrvl_register_hdev(struct btmrvl_private *priv)
132ff4e5fa8dfb Bing Zhao 2009-06-02 658 {
132ff4e5fa8dfb Bing Zhao 2009-06-02 659 struct hci_dev *hdev = NULL;
70a7808b50b119 Abhishek Pandit-Subedi 2020-06-10 660 struct btmrvl_sdio_card *card = priv->btmrvl_dev.card;
132ff4e5fa8dfb Bing Zhao 2009-06-02 661 int ret;
132ff4e5fa8dfb Bing Zhao 2009-06-02 662
132ff4e5fa8dfb Bing Zhao 2009-06-02 663 hdev = hci_alloc_dev();
132ff4e5fa8dfb Bing Zhao 2009-06-02 664 if (!hdev) {
132ff4e5fa8dfb Bing Zhao 2009-06-02 665 BT_ERR("Can not allocate HCI device");
132ff4e5fa8dfb Bing Zhao 2009-06-02 666 goto err_hdev;
132ff4e5fa8dfb Bing Zhao 2009-06-02 667 }
132ff4e5fa8dfb Bing Zhao 2009-06-02 668
132ff4e5fa8dfb Bing Zhao 2009-06-02 669 priv->btmrvl_dev.hcidev = hdev;
155961e8001719 David Rheinsberg 2012-02-09 670 hci_set_drvdata(hdev, priv);
132ff4e5fa8dfb Bing Zhao 2009-06-02 671
c13854cef47510 Marcel Holtmann 2010-02-08 672 hdev->bus = HCI_SDIO;
132ff4e5fa8dfb Bing Zhao 2009-06-02 673 hdev->open = btmrvl_open;
132ff4e5fa8dfb Bing Zhao 2009-06-02 674 hdev->close = btmrvl_close;
132ff4e5fa8dfb Bing Zhao 2009-06-02 675 hdev->flush = btmrvl_flush;
132ff4e5fa8dfb Bing Zhao 2009-06-02 676 hdev->send = btmrvl_send_frame;
4b245722cabc6e Amitkumar Karwar 2013-10-01 677 hdev->setup = btmrvl_setup;
27b869f59d5d98 Amitkumar Karwar 2014-07-18 678 hdev->set_bdaddr = btmrvl_set_bdaddr;
4539ca67fe8ede Luiz Augusto von Dentz 2021-10-01 679 hdev->wakeup = btmrvl_wakeup;
70a7808b50b119 Abhishek Pandit-Subedi 2020-06-10 680 SET_HCIDEV_DEV(hdev, &card->func->dev);
64061607eab7cb Bing Zhao 2010-03-03 681
f120c6b635a62d Bing Zhao 2010-03-03 @682 hdev->dev_type = priv->btmrvl_dev.dev_type;
f120c6b635a62d Bing Zhao 2010-03-03 683
132ff4e5fa8dfb Bing Zhao 2009-06-02 684 ret = hci_register_dev(hdev);
132ff4e5fa8dfb Bing Zhao 2009-06-02 685 if (ret < 0) {
132ff4e5fa8dfb Bing Zhao 2009-06-02 686 BT_ERR("Can not register HCI device");
132ff4e5fa8dfb Bing Zhao 2009-06-02 687 goto err_hci_register_dev;
132ff4e5fa8dfb Bing Zhao 2009-06-02 688 }
132ff4e5fa8dfb Bing Zhao 2009-06-02 689 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
kernel test robot
build botkernel test robot noticed the following build errors:
Hi Luiz,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20240506]
[cannot apply to v6.9-rc7 v6.9-rc6 v6.9-rc5 linus/master v6.9-rc7] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Luiz-Augusto-von-Dentz/Bluetooth-HCI-Remove-HCI_AMP-support/20240507-063936 base: next-20240506 patch link: https://lore.kernel.org/r/20240506223758.460710-1-luiz.dentz%40gmail.com patch subject: [PATCH v1] Bluetooth: HCI: Remove HCI_AMP support config: arm-defconfig (https://download.01.org/0day-ci/archive/20240507/[email protected]/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240507/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> drivers/bluetooth/btmrvl_main.c:682:8: error: no member named 'dev_type' in 'struct hci_dev'
hdev->dev_type = priv->btmrvl_dev.dev_type;
~~~~ ^1 error generated.
vim +682 drivers/bluetooth/btmrvl_main.c
132ff4e5fa8dfb Bing Zhao 2009-06-02 656
64061607eab7cb Bing Zhao 2010-03-03 657 int btmrvl_register_hdev(struct btmrvl_private *priv)
132ff4e5fa8dfb Bing Zhao 2009-06-02 658 {
132ff4e5fa8dfb Bing Zhao 2009-06-02 659 struct hci_dev *hdev = NULL;
70a7808b50b119 Abhishek Pandit-Subedi 2020-06-10 660 struct btmrvl_sdio_card *card = priv->btmrvl_dev.card;
132ff4e5fa8dfb Bing Zhao 2009-06-02 661 int ret;
132ff4e5fa8dfb Bing Zhao 2009-06-02 662
132ff4e5fa8dfb Bing Zhao 2009-06-02 663 hdev = hci_alloc_dev();
132ff4e5fa8dfb Bing Zhao 2009-06-02 664 if (!hdev) {
132ff4e5fa8dfb Bing Zhao 2009-06-02 665 BT_ERR("Can not allocate HCI device");
132ff4e5fa8dfb Bing Zhao 2009-06-02 666 goto err_hdev;
132ff4e5fa8dfb Bing Zhao 2009-06-02 667 }
132ff4e5fa8dfb Bing Zhao 2009-06-02 668
132ff4e5fa8dfb Bing Zhao 2009-06-02 669 priv->btmrvl_dev.hcidev = hdev;
155961e8001719 David Rheinsberg 2012-02-09 670 hci_set_drvdata(hdev, priv);
132ff4e5fa8dfb Bing Zhao 2009-06-02 671
c13854cef47510 Marcel Holtmann 2010-02-08 672 hdev->bus = HCI_SDIO;
132ff4e5fa8dfb Bing Zhao 2009-06-02 673 hdev->open = btmrvl_open;
132ff4e5fa8dfb Bing Zhao 2009-06-02 674 hdev->close = btmrvl_close;
132ff4e5fa8dfb Bing Zhao 2009-06-02 675 hdev->flush = btmrvl_flush;
132ff4e5fa8dfb Bing Zhao 2009-06-02 676 hdev->send = btmrvl_send_frame;
4b245722cabc6e Amitkumar Karwar 2013-10-01 677 hdev->setup = btmrvl_setup;
27b869f59d5d98 Amitkumar Karwar 2014-07-18 678 hdev->set_bdaddr = btmrvl_set_bdaddr;
4539ca67fe8ede Luiz Augusto von Dentz 2021-10-01 679 hdev->wakeup = btmrvl_wakeup;
70a7808b50b119 Abhishek Pandit-Subedi 2020-06-10 680 SET_HCIDEV_DEV(hdev, &card->func->dev);
64061607eab7cb Bing Zhao 2010-03-03 681
f120c6b635a62d Bing Zhao 2010-03-03 @682 hdev->dev_type = priv->btmrvl_dev.dev_type;
f120c6b635a62d Bing Zhao 2010-03-03 683
132ff4e5fa8dfb Bing Zhao 2009-06-02 684 ret = hci_register_dev(hdev);
132ff4e5fa8dfb Bing Zhao 2009-06-02 685 if (ret < 0) {
132ff4e5fa8dfb Bing Zhao 2009-06-02 686 BT_ERR("Can not register HCI device");
132ff4e5fa8dfb Bing Zhao 2009-06-02 687 goto err_hci_register_dev;
132ff4e5fa8dfb Bing Zhao 2009-06-02 688 }
132ff4e5fa8dfb Bing Zhao 2009-06-02 689 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki