Hi Luiz,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on linus/master v5.14-rc2]
[cannot apply to bluetooth/master next-20210716]
[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/Bluetooth...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git
master
config: x86_64-randconfig-s021-20210718 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://github.com/0day-ci/linux/commit/a02b154e687ba3e82afdd263f84570b1c...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Luiz-Augusto-von-Dentz/Bluetooth-hci_sock-Fix-calling-lock_sock-when-handling-HCI_DEV_UNREG/20210718-112013
git checkout a02b154e687ba3e82afdd263f84570b1ca185a8a
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> net/bluetooth/hci_conn.c:1709:29: sparse: sparse: cast removes
address space '__user' of expression
> net/bluetooth/hci_conn.c:1709:40: sparse: sparse: incorrect type in initializer
(different address spaces) @@ expected char [noderef] __user *ptr @@ got char * @@
net/bluetooth/hci_conn.c:1709:40: sparse: expected char [noderef] __user
*ptr
net/bluetooth/hci_conn.c:1709:40: sparse: got char *
vim +/__user +1709 net/bluetooth/hci_conn.c
1703
1704 int hci_get_conn_info(struct hci_dev *hdev, void __user *arg,
1705 struct hci_conn_info_req *req)
1706 {
1707 struct hci_conn_info ci;
1708 struct hci_conn *conn;
1709 char __user *ptr = (char *)arg + sizeof(*req);
1710
1711 hci_dev_lock(hdev);
1712 conn = hci_conn_hash_lookup_ba(hdev, req->type, &req->bdaddr);
1713 if (conn) {
1714 bacpy(&ci.bdaddr, &conn->dst);
1715 ci.handle = conn->handle;
1716 ci.type = conn->type;
1717 ci.out = conn->out;
1718 ci.state = conn->state;
1719 ci.link_mode = get_link_mode(conn);
1720 }
1721 hci_dev_unlock(hdev);
1722
1723 if (!conn)
1724 return -ENOENT;
1725
1726 return copy_to_user(ptr, &ci, sizeof(ci)) ? -EFAULT : 0;
1727 }
1728
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org