Re: [PATCH v2 3/5] Bluetooth: advmon offload MSFT remove monitor

From: Dan Carpenter
Date: Tue Dec 15 2020 - 14:08:23 EST


Hi Archie,

url: https://github.com/0day-ci/linux/commits/Archie-Pusaka/MSFT-offloading-support-for-advertisement-monitor/20201215-163858
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: i386-randconfig-m021-20201215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

smatch warnings:
net/bluetooth/msft.h:45 msft_remove_monitor() warn: signedness bug returning '(-95)'

vim +45 net/bluetooth/msft.h

d8ca4cbc63c57c8 Archie Pusaka 2020-12-15 41 static inline bool msft_remove_monitor(struct hci_dev *hdev,
^^^^
d8ca4cbc63c57c8 Archie Pusaka 2020-12-15 42 struct adv_monitor *monitor,
d8ca4cbc63c57c8 Archie Pusaka 2020-12-15 43 u16 handle)
d8ca4cbc63c57c8 Archie Pusaka 2020-12-15 44 {
d8ca4cbc63c57c8 Archie Pusaka 2020-12-15 @45 return -EOPNOTSUPP;
^^^^^^^^^^^^^^^^^^^
change this to return false?

d8ca4cbc63c57c8 Archie Pusaka 2020-12-15 46 }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip