Hi Luiz, kernel test robot noticed the following build warnings: [auto build test WARNING on bluetooth-next/master] [also build test WARNING on bluetooth/master linus/master v6.11-rc5] [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-MGMT-Fix-not-generating-command-complete-for-MGMT_OP_DISCONNECT/20240827-042615 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master patch link: https://lore.kernel.org/r/20240826202518.524007-2-luiz.dentz%40gmail.com patch subject: [PATCH v2 2/2] Bluetooth: MGMT: Fix not generating command complete for MGMT_OP_DISCONNECT config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240827/202408271234.sY3VKVIg-lkp@xxxxxxxxx/config) compiler: sh4-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240827/202408271234.sY3VKVIg-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/202408271234.sY3VKVIg-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> net/bluetooth/mgmt.c:9709:13: warning: 'disconnect_rsp' defined but not used [-Wunused-function] 9709 | static void disconnect_rsp(struct mgmt_pending_cmd *cmd, void *data) | ^~~~~~~~~~~~~~ vim +/disconnect_rsp +9709 net/bluetooth/mgmt.c f7520543ab4034 Johan Hedberg 2011-01-20 9708 3b0602cd01a571 Johan Hedberg 2015-03-06 @9709 static void disconnect_rsp(struct mgmt_pending_cmd *cmd, void *data) 8962ee74be48df Johan Hedberg 2011-01-20 9710 { 8962ee74be48df Johan Hedberg 2011-01-20 9711 struct sock **sk = data; 8962ee74be48df Johan Hedberg 2011-01-20 9712 f5818c2241247c Johan Hedberg 2014-12-05 9713 cmd->cmd_complete(cmd, 0); 8962ee74be48df Johan Hedberg 2011-01-20 9714 8962ee74be48df Johan Hedberg 2011-01-20 9715 *sk = cmd->sk; 8962ee74be48df Johan Hedberg 2011-01-20 9716 sock_hold(*sk); 8962ee74be48df Johan Hedberg 2011-01-20 9717 a664b5bc77fbc8 Johan Hedberg 2011-02-19 9718 mgmt_pending_remove(cmd); 8962ee74be48df Johan Hedberg 2011-01-20 9719 } 8962ee74be48df Johan Hedberg 2011-01-20 9720 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki