Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1743150rdh; Sat, 25 Nov 2023 01:10:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr0+bmb35flrzf4JvJ9X3OjDu5xiAkHPC3TjHdAcFyc/XVDJRrxSMsRsvEZ6dx7cRPWhws X-Received: by 2002:a05:6a20:6d9e:b0:18b:4dc2:a4d8 with SMTP id gl30-20020a056a206d9e00b0018b4dc2a4d8mr4301995pzb.8.1700903436531; Sat, 25 Nov 2023 01:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700903436; cv=none; d=google.com; s=arc-20160816; b=Pi31WO9d3bfAVIj5vQXgWDJx6CXwcMsYhOS2MO9tLRlAz3BbAtqMng0lBhDD6yp49L MS/sIbFlBbxAlO/BMoIyfyRnnLdVwqBvUPybtVvS7QPkiF8ya5Grdw9HxBxu6f4XLbnt Frg95GzFBdWAZcFeGUQU1VIMv1khiLL/wQpzsv9usWN6BTfv0VFky4D/+t67rMwKjmLJ BwtXCnczNTKp4XfRv3O5BZE1O6Y1e59NqSkPQ/tCzT13S7feDRDBfAqLJ8hk4vSi+/sy fPKvKTkSqiQflABz8VIhSQIU503uj1po2kjpdFN8xcdFC8ETAn7hyLPZ1XAvctiBTRxF g6Hw== 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=E9T9+PUVe6i5EZpfldNHMpmP43ZuD+T1r53svAsMdDY=; fh=RSvGO05p8R1RvVLnc9lGpdUnyl+fmdhxDCLQlJLxzFY=; b=Jxz6AAOKyTRNT69Yo7jOlxRUQ5gn9pr5H1Jq8WVLzfnZkWw6P+By2QhY68ykR5rwJV bWlB29lO8zRbB16U2251LQF9u9SVv6NNFU7aywg7GC5gMjT2biw82H3HrICHn/I3caJt Qngj+RgsgG0av+ZaYEyFPiz7jZ47vxS+A29TQjwEpXRUTrzNp+wRMP1Q2DrL63I//8y/ cHZ1MuVHRM0Z7ADQVTxbfOx5on5PKjzc1mRqBSbWSgZmQ9q/GSZmEpPq5/uQ2O1s1CSh beOrlEJLBn7cuTKGwsv836EDxDlO/SwTEVah1gmL/QIICdm7euCcWTqlwdJHyeZLtF+P u80w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WHeFdIJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ie4-20020a17090b400400b00285807d0f78si4252413pjb.86.2023.11.25.01.10.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 01:10:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WHeFdIJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8701380A8B62; Sat, 25 Nov 2023 01:10:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231843AbjKYJKQ (ORCPT + 99 others); Sat, 25 Nov 2023 04:10:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjKYJKP (ORCPT ); Sat, 25 Nov 2023 04:10:15 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA4E310C1; Sat, 25 Nov 2023 01:10:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700903421; x=1732439421; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QdzRfqqMDGrm6F4e1ZpjewvxXCLTWBlTVCn5Wi8ZJlM=; b=WHeFdIJ5Ox1Ts8/OeglmIumtCX9s28W1fX/YRXQykOd1gSrM81nPj3bM do1ryxCXrKjwn9CvDU7GI14imuqkasMeF+6GWMZcK/Ix/vI9+J0WQwUXu NfgD5niI4nPCYFxWFdL9/Ysn8ctpBJOauWLoV/Iw6KnjqbjJ0R4OIZ6kA dEj8WGHe4S/LDgOc8w0Qv+ey/hic31HS4pdLGW3RiE+4vW6y0RQHcHJJZ TSchJnzQTUD2AOe6hEVJsYDKL7qjVxuj93Pa4py1QaK5TBUCmr/sU/vzt MYO3gvr/jX+ZjRgEAZil4FOBHct/6BDYsQ1I1fPfovKMarttso669KOgg A==; X-IronPort-AV: E=McAfee;i="6600,9927,10904"; a="392268731" X-IronPort-AV: E=Sophos;i="6.04,226,1695711600"; d="scan'208";a="392268731" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2023 01:10:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10904"; a="1099303470" X-IronPort-AV: E=Sophos;i="6.04,226,1695711600"; d="scan'208";a="1099303470" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 25 Nov 2023 01:10:18 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r6og4-0003p9-1e; Sat, 25 Nov 2023 09:10:16 +0000 Date: Sat, 25 Nov 2023 17:10:06 +0800 From: kernel test robot To: Anshul Dalal , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Anshul Dalal , Conor Dooley , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-kernel-mentees@lists.linuxfoundation.org, Jonathan Cameron Subject: Re: [PATCH v3 3/3] iio: chemical: add support for Aosong AGS02MA Message-ID: <202311251636.m0yt3fIb-lkp@intel.com> References: <20231121095800.2180870-3-anshulusr@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121095800.2180870-3-anshulusr@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 01:10:35 -0800 (PST) Hi Anshul, kernel test robot noticed the following build warnings: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on linus/master v6.7-rc2 next-20231124] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Anshul-Dalal/dt-bindings-iio-chemical-add-aosong-ags02ma/20231121-180435 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20231121095800.2180870-3-anshulusr%40gmail.com patch subject: [PATCH v3 3/3] iio: chemical: add support for Aosong AGS02MA config: arm-randconfig-r081-20231123 (https://download.01.org/0day-ci/archive/20231125/202311251636.m0yt3fIb-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231125/202311251636.m0yt3fIb-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311251636.m0yt3fIb-lkp@intel.com/ New smatch warnings: drivers/iio/chemical/ags02ma.c:53 ags02ma_register_read() warn: unsigned 'ret' is never less than zero. Old smatch warnings: drivers/iio/chemical/ags02ma.c:63 ags02ma_register_read() warn: unsigned 'ret' is never less than zero. vim +/ret +53 drivers/iio/chemical/ags02ma.c 45 46 static u32 ags02ma_register_read(struct i2c_client *client, u8 reg, u16 delay) 47 { 48 u32 ret; 49 u8 crc; 50 struct ags02ma_reading read_buffer; 51 52 ret = i2c_master_send(client, ®, sizeof(reg)); > 53 if (ret < 0) { 54 dev_err(&client->dev, 55 "Failed to send data to register 0x%x: %d", reg, ret); 56 return ret; 57 } 58 59 /* Processing Delay, Check Table 7.7 in the datasheet */ 60 msleep_interruptible(delay); 61 62 ret = i2c_master_recv(client, (u8 *)&read_buffer, sizeof(read_buffer)); 63 if (ret < 0) { 64 dev_err(&client->dev, 65 "Failed to receive from register 0x%x: %d", reg, ret); 66 return ret; 67 } 68 ret = be32_to_cpu(read_buffer.data); 69 70 crc = crc8(ags02ma_crc8_table, (u8 *)&read_buffer.data, 71 sizeof(read_buffer.data), AGS02MA_CRC8_INIT); 72 if (crc != read_buffer.crc) { 73 dev_err(&client->dev, "CRC error\n"); 74 return -EIO; 75 } 76 77 return ret; 78 } 79 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki