tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-4.14
head: a567298cc2a7571c3a7c390cadcac9e1d54ca2d1
commit: f59f707f62daa14db3abd78c53f02edd9beea456 [82/84] Bluetooth: btbcm: Move setting of
USE_BDADDR_PROPERTY quirk to hci_bcm.c
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
ed6b578040a85977026c93bf4188f996148f3218)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout f59f707f62daa14db3abd78c53f02edd9beea456
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/bluetooth/hci_bcm.c:476:10: error: use of undeclared
identifier 'HCI_QUIRK_USE_BDADDR_PROPERTY'
set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hu->hdev->quirks);
^
1 error generated.
vim +/HCI_QUIRK_USE_BDADDR_PROPERTY +476 drivers/bluetooth/hci_bcm.c
410
411 static int bcm_setup(struct hci_uart *hu)
412 {
413 struct bcm_data *bcm = hu->priv;
414 char fw_name[64];
415 const struct firmware *fw;
416 unsigned int speed;
417 int err;
418
419 bt_dev_dbg(hu->hdev, "hu %p", hu);
420
421 hu->hdev->set_diag = bcm_set_diag;
422 hu->hdev->set_bdaddr = btbcm_set_bdaddr;
423
424 err = btbcm_initialize(hu->hdev, fw_name, sizeof(fw_name));
425 if (err)
426 return err;
427
428 err = request_firmware(&fw, fw_name, &hu->hdev->dev);
429 if (err < 0) {
430 bt_dev_info(hu->hdev, "BCM: Patch %s not found", fw_name);
431 return 0;
432 }
433
434 err = btbcm_patchram(hu->hdev, fw);
435 if (err) {
436 bt_dev_info(hu->hdev, "BCM: Patch failed (%d)", err);
437 goto finalize;
438 }
439
440 /* Init speed if any */
441 if (hu->init_speed)
442 speed = hu->init_speed;
443 else if (hu->proto->init_speed)
444 speed = hu->proto->init_speed;
445 else
446 speed = 0;
447
448 if (speed)
449 host_set_baudrate(hu, speed);
450
451 /* Operational speed if any */
452 if (hu->oper_speed)
453 speed = hu->oper_speed;
454 else if (hu->proto->oper_speed)
455 speed = hu->proto->oper_speed;
456 else
457 speed = 0;
458
459 if (speed) {
460 err = bcm_set_baudrate(hu, speed);
461 if (!err)
462 host_set_baudrate(hu, speed);
463 }
464
465 finalize:
466 release_firmware(fw);
467
468 err = btbcm_finalize(hu->hdev);
469 if (err)
470 return err;
471
472 /* Some devices ship with the controller default address.
473 * Allow the bootloader to set a valid address through the
474 * device tree.
475 */
476 set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY,
&hu->hdev->quirks);
477
478 if (!bcm_request_irq(bcm))
479 err = bcm_setup_sleep(hu);
480
481 return err;
482 }
483
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org