Content-Type: multipart/mixed; boundary="===============4246127759571529007==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 2/2] Bluetooth: HCI: Fix definition of hci_rp_delete_stored_link_key Date: Sat, 27 Nov 2021 14:27:47 +0800 Message-ID: <202111271449.QQM12YkZ-lkp@intel.com> In-Reply-To: <20211125001613.3274241-2-luiz.dentz@gmail.com> List-Id: --===============4246127759571529007== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Luiz, I love your patch! Perhaps something to improve: [auto build test WARNING on bluetooth-next/master] [also build test WARNING on v5.16-rc2] [cannot apply to next-20211126] [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/0day-ci/linux/commits/Luiz-Augusto-von-Dentz/Blu= etooth-HCI-Fix-definition-of-hci_rp_read_stored_link_key/20211125-081632 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth= -next.git master config: i386-randconfig-s001-20211126 (https://download.01.org/0day-ci/arch= ive/20211127/202111271449.QQM12YkZ-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/eed7490f0a05bc41f1f2e58b2= 0663dc0870a38ba git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Luiz-Augusto-von-Dentz/Bluetooth-H= CI-Fix-definition-of-hci_rp_read_stored_link_key/20211125-081632 git checkout eed7490f0a05bc41f1f2e58b20663dc0870a38ba # save the config file to linux build tree make W=3D1 C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3D= build_dir ARCH=3Di386 SHELL=3D/bin/bash net/bluetooth/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> net/bluetooth/hci_event.c:274:15: sparse: sparse: restricted __le16 degr= ades to integer >> net/bluetooth/hci_event.c:275:39: sparse: sparse: invalid assignment: -= =3D >> net/bluetooth/hci_event.c:275:39: sparse: left side has type unsigned= short >> net/bluetooth/hci_event.c:275:39: sparse: right side has type restric= ted __le16 vim +274 net/bluetooth/hci_event.c c2f0f979276fc49 Marcel Holtmann 2015-01-12 263 = a93661203641eb5 Marcel Holtmann 2015-01-12 264 static void hci_cc_delete_= stored_link_key(struct hci_dev *hdev, a93661203641eb5 Marcel Holtmann 2015-01-12 265 struct sk_buff *skb) a93661203641eb5 Marcel Holtmann 2015-01-12 266 { a93661203641eb5 Marcel Holtmann 2015-01-12 267 struct hci_rp_delete_stor= ed_link_key *rp =3D (void *)skb->data; a93661203641eb5 Marcel Holtmann 2015-01-12 268 = a93661203641eb5 Marcel Holtmann 2015-01-12 269 BT_DBG("%s status 0x%2.2x= ", hdev->name, rp->status); a93661203641eb5 Marcel Holtmann 2015-01-12 270 = a93661203641eb5 Marcel Holtmann 2015-01-12 271 if (rp->status) a93661203641eb5 Marcel Holtmann 2015-01-12 272 return; a93661203641eb5 Marcel Holtmann 2015-01-12 273 = a93661203641eb5 Marcel Holtmann 2015-01-12 @274 if (rp->num_keys <=3D hde= v->stored_num_keys) a93661203641eb5 Marcel Holtmann 2015-01-12 @275 hdev->stored_num_keys -= =3D rp->num_keys; a93661203641eb5 Marcel Holtmann 2015-01-12 276 else a93661203641eb5 Marcel Holtmann 2015-01-12 277 hdev->stored_num_keys = =3D 0; a93661203641eb5 Marcel Holtmann 2015-01-12 278 } a93661203641eb5 Marcel Holtmann 2015-01-12 279 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4246127759571529007==--