public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [PATCH] Bluetooth: hci_sync: Add hci_le_create_conn_sync
       [not found] <20211208020553.219387-1-luiz.dentz@gmail.com>
@ 2021-12-08  6:12 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-08  6:12 UTC (permalink / raw)
  To: Luiz Augusto von Dentz, linux-bluetooth; +Cc: llvm, kbuild-all

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/Bluetooth-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/archive/20211208/202112081400.zv8bsipk-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1cb1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a)
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/0day-ci/linux/commit/edb4c612dda2cb67f35cfe5a1c3bd0b38918aa80
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Luiz-Augusto-von-Dentz/Bluetooth-hci_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=$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/hci_sync.c:5120:5: warning: no previous prototype for function 'hci_le_ext_create_conn_sync' [-Wmissing-prototypes]
   int hci_le_ext_create_conn_sync(struct hci_dev *hdev, struct hci_conn *conn,
       ^
   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 *conn,
   ^
   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_conn *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 = (void *) data;
  5129		p = (void *) cp->data;
  5130	
  5131		memset(cp, 0, sizeof(*cp));
  5132	
  5133		bacpy(&cp->peer_addr, &conn->dst);
  5134		cp->peer_addr_type = conn->dst_type;
  5135		cp->own_addr_type = own_addr_type;
  5136	
  5137		plen = sizeof(*cp);
  5138	
  5139		if (scan_1m(hdev)) {
  5140			cp->phys |= LE_SCAN_PHY_1M;
  5141			set_ext_conn_params(conn, p);
  5142	
  5143			p++;
  5144			plen += sizeof(*p);
  5145		}
  5146	
  5147		if (scan_2m(hdev)) {
  5148			cp->phys |= LE_SCAN_PHY_2M;
  5149			set_ext_conn_params(conn, p);
  5150	
  5151			p++;
  5152			plen += sizeof(*p);
  5153		}
  5154	
  5155		if (scan_coded(hdev)) {
  5156			cp->phys |= LE_SCAN_PHY_CODED;
  5157			set_ext_conn_params(conn, p);
  5158	
  5159			plen += 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@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-08  6:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20211208020553.219387-1-luiz.dentz@gmail.com>
2021-12-08  6:12 ` [PATCH] Bluetooth: hci_sync: Add hci_le_create_conn_sync kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox