From: kernel test robot <lkp@intel.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
linux-bluetooth@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH 4/8] Bluetooth: Add BTPROTO_ISO socket type
Date: Fri, 6 May 2022 09:13:15 +0800 [thread overview]
Message-ID: <202205060800.a0ZUbInN-lkp@intel.com> (raw)
In-Reply-To: <20220505230550.3450617-4-luiz.dentz@gmail.com>
Hi Luiz,
I love your patch! Perhaps something to improve:
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on bluetooth/master v5.18-rc5 next-20220505]
[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]
url: https://github.com/intel-lab-lkp/linux/commits/Luiz-Augusto-von-Dentz/Bluetooth-eir-Add-helpers-for-managing-service-data/20220506-070828
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: hexagon-randconfig-r025-20220505 (https://download.01.org/0day-ci/archive/20220506/202205060800.a0ZUbInN-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc)
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
# https://github.com/intel-lab-lkp/linux/commit/9ab3ba7464f8b680ac64a72e2a75f663c922bcef
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Luiz-Augusto-von-Dentz/Bluetooth-eir-Add-helpers-for-managing-service-data/20220506-070828
git checkout 9ab3ba7464f8b680ac64a72e2a75f663c922bcef
# 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=hexagon SHELL=/bin/bash net/bluetooth/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/bluetooth/mgmt.c:4432:6: warning: variable 'changed' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (!err)
^~~~
net/bluetooth/mgmt.c:4444:6: note: uninitialized use occurs here
if (changed)
^~~~~~~
net/bluetooth/mgmt.c:4432:2: note: remove the 'if' if its condition is always true
if (!err)
^~~~~~~~~
net/bluetooth/mgmt.c:4405:19: note: initialize the variable 'changed' to silence this warning
bool val, changed;
^
= 0
1 warning generated.
--
>> net/bluetooth/iso.c:777:11: warning: variable 'sent' set but not used [-Wunused-but-set-variable]
int err, sent = 0;
^
1 warning generated.
vim +4432 net/bluetooth/mgmt.c
4398
4399 #ifdef CONFIG_BT_LE
4400 static int set_iso_socket_func(struct sock *sk, struct hci_dev *hdev,
4401 struct mgmt_cp_set_exp_feature *cp, u16 data_len)
4402 {
4403 struct mgmt_rp_set_exp_feature rp;
4404
4405 bool val, changed;
4406 int err;
4407
4408 /* Command requires to use the non-controller index */
4409 if (hdev)
4410 return mgmt_cmd_status(sk, hdev->id,
4411 MGMT_OP_SET_EXP_FEATURE,
4412 MGMT_STATUS_INVALID_INDEX);
4413
4414 /* Parameters are limited to a single octet */
4415 if (data_len != MGMT_SET_EXP_FEATURE_SIZE + 1)
4416 return mgmt_cmd_status(sk, MGMT_INDEX_NONE,
4417 MGMT_OP_SET_EXP_FEATURE,
4418 MGMT_STATUS_INVALID_PARAMS);
4419
4420 /* Only boolean on/off is supported */
4421 if (cp->param[0] != 0x00 && cp->param[0] != 0x01)
4422 return mgmt_cmd_status(sk, MGMT_INDEX_NONE,
4423 MGMT_OP_SET_EXP_FEATURE,
4424 MGMT_STATUS_INVALID_PARAMS);
4425
4426 val = cp->param[0] ? true : false;
4427 if (val)
4428 err = iso_init();
4429 else
4430 err = iso_exit();
4431
> 4432 if (!err)
4433 changed = true;
4434
4435 memcpy(rp.uuid, iso_socket_uuid, 16);
4436 rp.flags = cpu_to_le32(val ? BIT(0) : 0);
4437
4438 hci_sock_set_flag(sk, HCI_MGMT_EXP_FEATURE_EVENTS);
4439
4440 err = mgmt_cmd_complete(sk, MGMT_INDEX_NONE,
4441 MGMT_OP_SET_EXP_FEATURE, 0,
4442 &rp, sizeof(rp));
4443
4444 if (changed)
4445 exp_feature_changed(hdev, iso_socket_uuid, val, sk);
4446
4447 return err;
4448 }
4449 #endif
4450
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-05-06 1:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-05 23:05 [PATCH 1/8] Bluetooth: eir: Add helpers for managing service data Luiz Augusto von Dentz
2022-05-05 23:05 ` [PATCH 2/8] Bluetooth: hci_core: Introduce hci_recv_event_data Luiz Augusto von Dentz
2022-05-05 23:05 ` [PATCH 3/8] Bluetooth: Add initial implementation of CIS connections Luiz Augusto von Dentz
2022-05-06 1:44 ` kernel test robot
2022-05-05 23:05 ` [PATCH 4/8] Bluetooth: Add BTPROTO_ISO socket type Luiz Augusto von Dentz
2022-05-06 1:13 ` kernel test robot [this message]
2022-05-05 23:05 ` [PATCH 5/8] Bluetooth: Add initial implementation of BIS connections Luiz Augusto von Dentz
2022-05-06 0:41 ` kernel test robot
2022-05-05 23:05 ` [PATCH 6/8] Bluetooth: ISO: Add broadcast support Luiz Augusto von Dentz
2022-05-06 2:25 ` kernel test robot
2022-05-05 23:05 ` [PATCH 7/8] Bluetooth: btusb: Add support for ISO packets Luiz Augusto von Dentz
2022-05-05 23:05 ` [PATCH 8/8] Bluetooth: btusb: Detect if an ACL packet is in fact an ISO packet Luiz Augusto von Dentz
2022-05-06 0:10 ` [1/8] Bluetooth: eir: Add helpers for managing service data bluez.test.bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202205060800.a0ZUbInN-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=luiz.dentz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.