Content-Type: multipart/mixed; boundary="===============7892782988306493065==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH] Bluetooth: hci_sync: Add hci_le_create_conn_sync Date: Wed, 08 Dec 2021 14:12:20 +0800 Message-ID: <202112081400.zv8bsipk-lkp@intel.com> In-Reply-To: <20211208020553.219387-1-luiz.dentz@gmail.com> List-Id: --===============7892782988306493065== 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 next-20211207] [cannot apply to bluetooth/master v5.16-rc4] [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_sync-Add-hci_le_create_conn_sync/20211208-100714 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth= -next.git master config: hexagon-randconfig-r041-20211207 (https://download.01.org/0day-ci/a= rchive/20211208/202112081400.zv8bsipk-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1c= b1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a) reproduce (this is a W=3D1 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/0day-ci/linux/commit/edb4c612dda2cb67f35cfe5a1= c3bd0b38918aa80 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Luiz-Augusto-von-Dentz/Bluetooth-h= ci_sync-Add-hci_le_create_conn_sync/20211208-100714 git checkout edb4c612dda2cb67f35cfe5a1c3bd0b38918aa80 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash net/bluetooth/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/bluetooth/hci_sync.c:5120:5: warning: no previous prototype for func= tion 'hci_le_ext_create_conn_sync' [-Wmissing-prototypes] int hci_le_ext_create_conn_sync(struct hci_dev *hdev, struct hci_conn *c= onn, ^ net/bluetooth/hci_sync.c:5120:1: note: declare 'static' if the function = is not intended to be used outside of this translation unit int hci_le_ext_create_conn_sync(struct hci_dev *hdev, struct hci_conn *c= onn, ^ static = 1 warning generated. vim +/hci_le_ext_create_conn_sync +5120 net/bluetooth/hci_sync.c 5119 = > 5120 int hci_le_ext_create_conn_sync(struct hci_dev *hdev, struct hci_con= n *conn, 5121 u8 own_addr_type) 5122 { 5123 struct hci_cp_le_ext_create_conn *cp; 5124 struct hci_cp_le_ext_conn_param *p; 5125 u8 data[sizeof(*cp) + sizeof(*p) * 3]; 5126 u32 plen; 5127 = 5128 cp =3D (void *) data; 5129 p =3D (void *) cp->data; 5130 = 5131 memset(cp, 0, sizeof(*cp)); 5132 = 5133 bacpy(&cp->peer_addr, &conn->dst); 5134 cp->peer_addr_type =3D conn->dst_type; 5135 cp->own_addr_type =3D own_addr_type; 5136 = 5137 plen =3D sizeof(*cp); 5138 = 5139 if (scan_1m(hdev)) { 5140 cp->phys |=3D LE_SCAN_PHY_1M; 5141 set_ext_conn_params(conn, p); 5142 = 5143 p++; 5144 plen +=3D sizeof(*p); 5145 } 5146 = 5147 if (scan_2m(hdev)) { 5148 cp->phys |=3D LE_SCAN_PHY_2M; 5149 set_ext_conn_params(conn, p); 5150 = 5151 p++; 5152 plen +=3D sizeof(*p); 5153 } 5154 = 5155 if (scan_coded(hdev)) { 5156 cp->phys |=3D LE_SCAN_PHY_CODED; 5157 set_ext_conn_params(conn, p); 5158 = 5159 plen +=3D sizeof(*p); 5160 } 5161 = 5162 return __hci_cmd_sync_status(hdev, HCI_OP_LE_EXT_CREATE_CONN, 5163 plen, data, HCI_CMD_TIMEOUT); 5164 } 5165 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7892782988306493065==--