Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5575213iob; Mon, 9 May 2022 21:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuxJvm0pArlzXYuNVssGxN1sFKsqGX8ilpMI/3O8iSWFtqFKVf1VU0N+yTwZwZv/6gM2Et X-Received: by 2002:a17:90b:4a02:b0:1dc:4710:c1fe with SMTP id kk2-20020a17090b4a0200b001dc4710c1femr29759064pjb.208.1652156040576; Mon, 09 May 2022 21:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652156040; cv=none; d=google.com; s=arc-20160816; b=nIE399dCFyriuBYldoi+kkquoWxdq81kbX3uf8joPYt61fGWo/IHDH0nixiSl24mfv ykMPCCJFV0DXFnlPcn1QwXGEmRL+2c7Fp42aolm0lP+vGwqOLIXLjjtpEq5BBI4JX0T+ PvfKqDIC4CABgXNGCitisZhMNavuAYB1DH6JYXKCmyGU31eFfXZ0fBnUj5//pwRwRXf8 30HZ7SpaOigsRMr0DtwkML9UKTEIoHLHqvHjU+60rF/UGPfT4dNm9EWiT7xqxBIQbJnt 3RahhEJnQwPmeOuh2d2Hak4K6u/4orLFS4+qyWYeGryTRBOLcF0ycD8JaOKxlqnRNc/D zahw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H89DXIRLlzBuJ0U9zkT22rgsb4k28g7Bic7H2xNSqpY=; b=R8ZLfU1Vi2DiYzyPeKGzG7Xy4L9oH7bYMCA4LSwOIm7WYFy8j/8KKtY6oofo8X7OR+ M1WbTbZUnFKg0KBrmqp4BL68qLaiqyORRCNVIRwIrWWwrZV6dK4Gd2myd2NEMBoxM5e8 UIcXHdzyRL42fGHun5QES5UHnBq7XfUK6pLz8hdJ0oOd0Y8cXv3tzV8CMsAubF3wV2fU Tw+veR61LxIbZfJLZbVmO3rno5/wgfbkLD5UrreHtiwmShGCGsPsnl0IVeTsbCz+u3Mm yBniExupP1V6ql6ls8VD3rta6WGFPBczTWtTqE+Gzeq/mXI2YSA/qFx3EXTZFKqGkH8A zo6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EAlb2Bvp; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a17090acd0600b001dc8da20e73si1394293pju.172.2022.05.09.21.13.31; Mon, 09 May 2022 21:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EAlb2Bvp; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235766AbiEJEDc (ORCPT + 99 others); Tue, 10 May 2022 00:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbiEJEDb (ORCPT ); Tue, 10 May 2022 00:03:31 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042352AA2E4 for ; Mon, 9 May 2022 20:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652155176; x=1683691176; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vA4KazMFZ4xoCVMMB6a8YjavOAeqsDzEJNiclWnSX4w=; b=EAlb2Bvp1WTgUpDGbmJ6MU62dI3jDaxzkZV0rHt5mzr4LiAE8fIw3KkL oDaD43/SViqZ9JJMdhRPK4gRXChmaxXE91oYb6tlPGG5TZb8zK/MTUwH3 IE35kOPL+yfgmYq127iOZ4A6sE9M88cxoczGpG7eMtKg2j5nbuRMqGG51 34Bgw/SGtXJpS3R4g0fH2Pt5yROUyNCOmV6Xst0QyBfBEy/g1JK2UG29C E1Y7A2A7xlMqelh6qLQbRaJmVucFYbLyUGQ6j8CZyt46oFPY9+2lCajHk chg4PfIKYDAvphjVcbYZCwq4DzS1P/quabvUhTnJXJgvk6+wWCQWlGv0/ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="329846429" X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="329846429" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 20:59:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="602273669" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 09 May 2022 20:59:33 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1noH25-000HGk-7q; Tue, 10 May 2022 03:59:33 +0000 Date: Tue, 10 May 2022 11:59:17 +0800 From: kernel test robot To: Brian Gix , linux-bluetooth@vger.kernel.org Cc: kbuild-all@lists.01.org, marcel@holtmann.org, luiz.dentz@gmail.com, brian.gix@intel.com Subject: Re: [PATCH v2 1/2] Bluetooth: Implement support for Mesh Message-ID: <202205101155.NLcENnfd-lkp@intel.com> References: <20220509220512.482695-2-brian.gix@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220509220512.482695-2-brian.gix@intel.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Brian, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bluetooth/master] [also build test WARNING on bluetooth-next/master v5.18-rc6 next-20220509] [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/intel-lab-lkp/linux/commits/Brian-Gix/Add-Mesh-functionality-to-net-bluetooth/20220510-060608 base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master config: arc-randconfig-s031-20220509 (https://download.01.org/0day-ci/archive/20220510/202205101155.NLcENnfd-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/intel-lab-lkp/linux/commit/ec86301e787dba99c6afd77e40a4b5af142ef944 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Brian-Gix/Add-Mesh-functionality-to-net-bluetooth/20220510-060608 git checkout ec86301e787dba99c6afd77e40a4b5af142ef944 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/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/mgmt.c:4102:29: sparse: sparse: restricted __le16 degrades to integer net/bluetooth/mgmt.c:4841:9: sparse: sparse: cast to restricted __le32 >> net/bluetooth/mgmt.c:10121:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] instant @@ got unsigned int [usertype] instant @@ net/bluetooth/mgmt.c:10121:21: sparse: expected restricted __le64 [usertype] instant net/bluetooth/mgmt.c:10121:21: sparse: got unsigned int [usertype] instant vim +10121 net/bluetooth/mgmt.c 10069 10070 static void mesh_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, 10071 u8 addr_type, s8 rssi, u32 flags, u8 *eir, u16 eir_len, 10072 u8 *scan_rsp, u8 scan_rsp_len, u32 instant) 10073 { 10074 struct sk_buff *skb; 10075 struct mgmt_ev_mesh_device_found *ev; 10076 int i, j; 10077 10078 if (!hdev->mesh_ad_types[0]) 10079 goto accepted; 10080 10081 /* Scan for requested AD types */ 10082 if (eir_len > 0) { 10083 for (i = 0; i + 1 < eir_len; i += eir[i] + 1) { 10084 for (j = 0; j < sizeof(hdev->mesh_ad_types); j++) { 10085 if (!hdev->mesh_ad_types[j]) 10086 break; 10087 10088 if (hdev->mesh_ad_types[j] == eir[i + 1]) 10089 goto accepted; 10090 } 10091 } 10092 } 10093 10094 if (scan_rsp_len > 0) { 10095 for (i = 0; i + 1 < scan_rsp_len; i += scan_rsp[i] + 1) { 10096 for (j = 0; j < sizeof(hdev->mesh_ad_types); j++) { 10097 if (!hdev->mesh_ad_types[j]) 10098 break; 10099 10100 if (hdev->mesh_ad_types[j] == scan_rsp[i + 1]) 10101 goto accepted; 10102 } 10103 } 10104 } 10105 10106 return; 10107 10108 10109 accepted: 10110 skb = mgmt_alloc_skb(hdev, MGMT_EV_MESH_DEVICE_FOUND, 10111 sizeof(*ev) + eir_len + scan_rsp_len); 10112 if (!skb) 10113 return; 10114 10115 ev = skb_put(skb, sizeof(*ev)); 10116 10117 bacpy(&ev->addr.bdaddr, bdaddr); 10118 ev->addr.type = link_to_bdaddr(LE_LINK, addr_type); 10119 ev->rssi = rssi; 10120 ev->flags = cpu_to_le32(flags); 10121 ev->instant = instant; 10122 10123 if (eir_len > 0) 10124 /* Copy EIR or advertising data into event */ 10125 skb_put_data(skb, eir, eir_len); 10126 10127 if (scan_rsp_len > 0) 10128 /* Append scan response data to event */ 10129 skb_put_data(skb, scan_rsp, scan_rsp_len); 10130 10131 ev->eir_len = cpu_to_le16(eir_len + scan_rsp_len); 10132 10133 mgmt_event_skb(skb, NULL); 10134 } 10135 -- 0-DAY CI Kernel Test Service https://01.org/lkp