llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [steev:lenovo-x13s-v6.4-rc2-noaudio 34/87] drivers/bluetooth/btqca.c:213:6: warning: variable 'bid_len' set but not used
@ 2023-05-19  6:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-19  6:14 UTC (permalink / raw)
  To: Steev Klimaszewski; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/steev/linux lenovo-x13s-v6.4-rc2-noaudio
head:   3f22761b1d2903107946609c00f63d8a68d7e85a
commit: 5d5687ac24bde537084f46f49d21e4ce7653dd28 [34/87] hack: bluetooth: add way to generate nvm name
config: riscv-randconfig-r001-20230517 (https://download.01.org/0day-ci/archive/20230519/202305191415.BhcGeutK-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/steev/linux/commit/5d5687ac24bde537084f46f49d21e4ce7653dd28
        git remote add steev https://github.com/steev/linux
        git fetch --no-tags steev lenovo-x13s-v6.4-rc2-noaudio
        git checkout 5d5687ac24bde537084f46f49d21e4ce7653dd28
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/bluetooth/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305191415.BhcGeutK-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/bluetooth/btqca.c:213:6: warning: variable 'bid_len' set but not used [-Wunused-but-set-variable]
           int bid_len, err = 0;
               ^
   1 warning generated.


vim +/bid_len +213 drivers/bluetooth/btqca.c

   207	
   208	static int qca_read_fw_board_id(struct hci_dev *hdev, u16 *bid)
   209	{
   210		u8 cmd;
   211		struct sk_buff *skb;
   212		struct edl_event_hdr *edl;
 > 213		int bid_len, err = 0;
   214	
   215		cmd = EDL_GET_BID_REQ_CMD;
   216		skb = __hci_cmd_sync_ev(hdev, EDL_PATCH_CMD_OPCODE, EDL_PATCH_CMD_LEN,
   217					&cmd, 0, HCI_INIT_TIMEOUT);
   218		if (IS_ERR(skb)) {
   219			err = PTR_ERR(skb);
   220			bt_dev_err(hdev, "Reading QCA board ID failed (%d)", err);
   221			return err;
   222		}
   223	
   224		edl = skb_pull_data(skb, sizeof(*edl));
   225		if (!edl) {
   226			bt_dev_err(hdev, "QCA read board ID with no header");
   227			err = -EILSEQ;
   228			goto out;
   229		}
   230	
   231		if (edl->cresp != EDL_CMD_REQ_RES_EVT ||
   232		    edl->rtype != EDL_GET_BID_REQ_CMD) {
   233			bt_dev_err(hdev, "QCA Wrong packet received %d %d", edl->cresp,
   234				   edl->rtype);
   235			err = -EIO;
   236			goto out;
   237		}
   238	
   239		bid_len = edl->data[0];
   240		*bid = (edl->data[1] << 8) + edl->data[2];
   241	
   242	out:
   243		kfree_skb(skb);
   244		return err;
   245	}
   246	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-19  6:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19  6:14 [steev:lenovo-x13s-v6.4-rc2-noaudio 34/87] drivers/bluetooth/btqca.c:213:6: warning: variable 'bid_len' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).