Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2303736rwe; Sat, 15 Apr 2023 16:40:17 -0700 (PDT) X-Google-Smtp-Source: AKy350aHgWEc6Dz0lk0dakHSIwtcR+MooDl3wDfFREhDunCwVcWw8FOe+fdwP3Ubu6GfW1Ugna21 X-Received: by 2002:a05:6a20:4412:b0:ef:7aa2:3cfd with SMTP id ce18-20020a056a20441200b000ef7aa23cfdmr61119pzb.50.1681602017128; Sat, 15 Apr 2023 16:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681602017; cv=none; d=google.com; s=arc-20160816; b=kvR6A7o2WbUj+VyzeL+WoXU1LEWkWunIos59sLnPpNf+mYv49hDbRBSrQT0KcPQeki blN5dux/meB5xHzPUaqyM1mZVNBmCpCpkcRymOUfnDVOV9pwgh/6P9WpFRObvXlNv0sf I88unNX/9JCX0ePaR7cEMoIEmaKY1UsVvtiWxUXShN7ky4aQ0P2Ni5NNPSHI5G8Kxs97 g4sHJEsRWaPubMXQKAm0r2NgeJlUDjw+5jOwrU1OdUm1d1aEUFAsrO6kyBTuATcqO0qM uTaU480VBsaqYyblEfy+gRLi0KixzkXBPMuSIg/QElzyrlh99WY5bzsSxlM/pdgnYW6S J2OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=v9p6JazvFs2Y/5tZFwz3r9lZY2TgnDnphRsxA0txcZA=; b=wZ4yvN9Qk1RjAHQ1y1xqgCiSiJehKHKB+p2/b98jS2JYu580LxMFxYArHbUSCIUnhP iXANPokCqt2N9P+5zy6h+/wjyJVMzo2TJ4nxZ0t+qxDl3EQVN1KQ2QPZ9sIsgimZ++y3 CWAC9uUH9uzfB2/tTfIEx8e0912IG+OY3IOjSdF4v3VlYUi8D/rpGromb0LYsfRQF9Uv UsBKsHj7wjhBJOmDkSDggichAR+20aA2ZjpKMaWHkN6vDuMz2zyjIJBEgaHHUPNrEsAB n5ewzPO8FufpeYu0ZyBjDFntHQ9orPOjIC2XDwMyF72JE1D9Tlb3EW17Q2djj0glPXIh s4Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HZwrc49o; 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 a12-20020a65654c000000b005180515929csi8236130pgw.28.2023.04.15.16.39.48; Sat, 15 Apr 2023 16:40:17 -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=HZwrc49o; 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 S230019AbjDOXdC (ORCPT + 99 others); Sat, 15 Apr 2023 19:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjDOXdB (ORCPT ); Sat, 15 Apr 2023 19:33:01 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C308226B8 for ; Sat, 15 Apr 2023 16:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681601579; x=1713137579; h=date:from:to:cc:subject:message-id:mime-version; bh=rxQhQUHhLrNy6wWSGsrSPXjmYd09ktQXd++O0f+Gg48=; b=HZwrc49olhbLZ5SPuN/9rpmNba9kE7H8T3AP6L83aBsa/sPFanT3nC3F gZ+0yrpjN0/iKBggcZ/yHEqqh/B2lsGtMHFSm/zqXU6k4gjl6nxIIxWrL qQgpzaE5XAKD/NSRxuirE/zaLrrx7YvuYqEh2vEfqZk8/sQ8mvaGa38p3 xLb3xjr7WM5sqOdSMiqqsESFyfviQ4IAZ4V7maiocfAi475mnV/2fn/Vc 60Nkn50ftp/+xsg958wTa7taGFgxR5Zi2XzP4/RcgShsa4A8cX8uGlGMn /dl7e+FpWia30bdml7kk7QgMl0UlzPyckEFM4RSne7qTfWhiIQIiD5068 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10681"; a="347416483" X-IronPort-AV: E=Sophos;i="5.99,201,1677571200"; d="scan'208";a="347416483" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2023 16:32:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10681"; a="864590521" X-IronPort-AV: E=Sophos;i="5.99,201,1677571200"; d="scan'208";a="864590521" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 15 Apr 2023 16:32:56 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pnpO3-000bPb-2m; Sat, 15 Apr 2023 23:32:55 +0000 Date: Sun, 16 Apr 2023 07:32:02 +0800 From: kernel test robot To: Neeraj Sanjay Kale Cc: oe-kbuild-all@lists.linux.dev, linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz , Ilpo =?iso-8859-1?Q?J=E4rvinen?= Subject: [bluetooth-next:master 33/71] drivers/bluetooth/btnxpuart.c:844:36: sparse: sparse: incorrect type in argument 3 (different base types) Message-ID: <202304160736.Tsa0zTBU-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 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,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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master head: 492cf2b505d66b2bc0b50dae1d5e5921978f4802 commit: 2e9632009158054bcb6c1766c6748476db0561a0 [33/71] Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets config: riscv-randconfig-s053-20230416 (https://download.01.org/0day-ci/archive/20230416/202304160736.Tsa0zTBU-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=2e9632009158054bcb6c1766c6748476db0561a0 git remote add bluetooth-next https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git git fetch --no-tags bluetooth-next master git checkout 2e9632009158054bcb6c1766c6748476db0561a0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash drivers/bluetooth/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304160736.Tsa0zTBU-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) WARNING: invalid argument to '-march': '_zihintpause' drivers/bluetooth/btnxpuart.c:681:23: sparse: sparse: restricted __le16 degrades to integer drivers/bluetooth/btnxpuart.c:690:82: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] req_len @@ got restricted __le16 [usertype] len @@ drivers/bluetooth/btnxpuart.c:690:82: sparse: expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:690:82: sparse: got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:694:84: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] req_len @@ got restricted __le16 [usertype] len @@ drivers/bluetooth/btnxpuart.c:694:84: sparse: expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:694:84: sparse: got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:708:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] requested_len @@ got restricted __le16 [usertype] len @@ drivers/bluetooth/btnxpuart.c:708:23: sparse: expected unsigned int [usertype] requested_len drivers/bluetooth/btnxpuart.c:708:23: sparse: got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:787:78: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] chipid @@ got restricted __le16 [usertype] chip_id @@ drivers/bluetooth/btnxpuart.c:787:78: sparse: expected unsigned short [usertype] chipid drivers/bluetooth/btnxpuart.c:787:78: sparse: got restricted __le16 [usertype] chip_id drivers/bluetooth/btnxpuart.c:810:74: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] req_len @@ got restricted __le16 [usertype] len @@ drivers/bluetooth/btnxpuart.c:810:74: sparse: expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:810:74: sparse: got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:815:76: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned short [usertype] req_len @@ got restricted __le16 [usertype] len @@ drivers/bluetooth/btnxpuart.c:815:76: sparse: expected unsigned short [usertype] req_len drivers/bluetooth/btnxpuart.c:815:76: sparse: got restricted __le16 [usertype] len drivers/bluetooth/btnxpuart.c:834:16: sparse: sparse: restricted __le32 degrades to integer drivers/bluetooth/btnxpuart.c:843:55: sparse: sparse: restricted __le32 degrades to integer >> drivers/bluetooth/btnxpuart.c:844:36: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned long [usertype] @@ got restricted __le16 [usertype] len @@ drivers/bluetooth/btnxpuart.c:844:36: sparse: expected unsigned long [usertype] drivers/bluetooth/btnxpuart.c:844:36: sparse: got restricted __le16 [usertype] len vim +844 drivers/bluetooth/btnxpuart.c 794 795 static int nxp_recv_fw_req_v3(struct hci_dev *hdev, struct sk_buff *skb) 796 { 797 struct btnxpuart_dev *nxpdev = hci_get_drvdata(hdev); 798 struct v3_data_req *req; 799 800 if (!process_boot_signature(nxpdev)) 801 goto free_skb; 802 803 req = (struct v3_data_req *)skb_pull_data(skb, sizeof(struct v3_data_req)); 804 if (!req || !nxpdev->fw) 805 goto free_skb; 806 807 nxp_send_ack(NXP_ACK_V3, hdev); 808 809 if (!nxpdev->timeout_changed) { 810 nxpdev->timeout_changed = nxp_fw_change_timeout(hdev, req->len); 811 goto free_skb; 812 } 813 814 if (!nxpdev->baudrate_changed) { 815 nxpdev->baudrate_changed = nxp_fw_change_baudrate(hdev, req->len); 816 if (nxpdev->baudrate_changed) { 817 serdev_device_set_baudrate(nxpdev->serdev, 818 HCI_NXP_SEC_BAUDRATE); 819 serdev_device_set_flow_control(nxpdev->serdev, 1); 820 nxpdev->current_baudrate = HCI_NXP_SEC_BAUDRATE; 821 } 822 goto free_skb; 823 } 824 825 if (req->len == 0) { 826 bt_dev_dbg(hdev, "FW Downloaded Successfully: %zu bytes", nxpdev->fw->size); 827 clear_bit(BTNXPUART_FW_DOWNLOADING, &nxpdev->tx_state); 828 wake_up_interruptible(&nxpdev->fw_dnld_done_wait_q); 829 goto free_skb; 830 } 831 if (req->error) 832 bt_dev_dbg(hdev, "FW Download received err 0x%02x from chip", req->error); 833 834 if (req->offset < nxpdev->fw_v3_offset_correction) { 835 /* This scenario should ideally never occur. But if it ever does, 836 * FW is out of sync and needs a power cycle. 837 */ 838 bt_dev_err(hdev, "Something went wrong during FW download. Please power cycle and try again"); 839 goto free_skb; 840 } 841 842 serdev_device_write_buf(nxpdev->serdev, 843 nxpdev->fw->data + req->offset - nxpdev->fw_v3_offset_correction, > 844 req->len); 845 846 free_skb: 847 kfree_skb(skb); 848 return 0; 849 } 850 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests