Hi, kernel test robot noticed the following build errors: [auto build test ERROR on bluetooth/master] [also build test ERROR on bluetooth-next/master linus/master v6.9 next-20240516] [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/Nobuaki-Tsunashima-infineon-com/Bluetooth-Patch-for-CYW4373-hci-up-fail-issue/20240516-131000 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master patch link: https://lore.kernel.org/r/6267800d70ae4344acaba3486b54bc0c%40infineon.com patch subject: [PATCH] Bluetooth: Patch for CYW4373 hci up fail issue config: x86_64-buildonly-randconfig-003-20240517 (https://download.01.org/0day-ci/archive/20240517/202405170433.qYUNBTtS-lkp@xxxxxxxxx/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240517/202405170433.qYUNBTtS-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202405170433.qYUNBTtS-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/bluetooth/btbcm.c:453:33: error: initializing 'struct bcm_chip_version_table *' with an expression of type 'const struct bcm_chip_version_table *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 453 | struct bcm_chip_version_table *entry = &disable_broken_read_transmit_power_by_chip_ver[0]; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. vim +453 drivers/bluetooth/btbcm.c 440 441 struct bcm_chip_version_table { 442 u8 chip_id; 443 u16 baseline; 444 }; 445 #define BCM_ROMFW_BASELINE_NUM 0xFFFF 446 static const struct bcm_chip_version_table disable_broken_read_transmit_power_by_chip_ver[] = { 447 {0x87, BCM_ROMFW_BASELINE_NUM} /* CYW4373/4373E */ 448 }; 449 static bool btbcm_is_disable_broken_read_tx_power_by_chip_ver(u8 chip_id, u16 baseline) 450 { 451 int i; 452 int table_size = sizeof(disable_broken_read_transmit_power_by_chip_ver)/sizeof(disable_broken_read_transmit_power_by_chip_ver[0]); > 453 struct bcm_chip_version_table *entry = &disable_broken_read_transmit_power_by_chip_ver[0]; 454 455 for( i=0 ; i<table_size ; i++, entry++) 456 { 457 if( (chip_id == entry->chip_id) && (baseline == entry->baseline) ) 458 return true; 459 } 460 461 return false; 462 } 463 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki