Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on bluetooth/master] [also build test WARNING 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: arm-pxa_defconfig (https://download.01.org/0day-ci/archive/20240517/202405170330.QEHgPNm1-lkp@xxxxxxxxx/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240517/202405170330.QEHgPNm1-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/202405170330.QEHgPNm1-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): drivers/bluetooth/btbcm.c: In function 'btbcm_is_disable_broken_read_tx_power_by_chip_ver': >> drivers/bluetooth/btbcm.c:453:48: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 453 | struct bcm_chip_version_table *entry = &disable_broken_read_transmit_power_by_chip_ver[0]; | ^ vim +/const +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