Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp773701rdf; Tue, 21 Nov 2023 16:55:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNvV7qOV3QUeGbL7NKbU4q/59GUjgkNtQ3dDllfAnyXBBbbt9l3OE6B/vs4v4P7POPZa1u X-Received: by 2002:a05:6a20:e48d:b0:17b:426f:829 with SMTP id ni13-20020a056a20e48d00b0017b426f0829mr717204pzb.37.1700614521534; Tue, 21 Nov 2023 16:55:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700614521; cv=none; d=google.com; s=arc-20160816; b=Ch+UKcShlfCOpp0APpWepJ2czGbW+lghMWLB6c0szukQlHow8W4rdmYhoSIlGGQgBa 7j6M8Jw4AcW3BQAiBIQU5l6am3tBUMKaUILuJz1loGngA68RHv9Y2bY6iMEzyX9N3cHy rRCeQqBms0MzniRZX7BRfImut8Ee/cFGlOhCvanIGKidHdrheOHq5nqJtiW1N4N6OX+F ARvu35V1Uj7CxL7bsZqjOdsf9cnq4hw888Ccf5HuUyeJd9BD8wCt4JWRT6EJ0zHvQ0By SdYpgiuHaaquQl46eiBwV2ghxq0QiEH8HTjz9bLSPeq5qsYcHKQP7keUR6QkJs8evul3 ApSw== 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=L6g03KlS5edSSj4sLLlSXRI0FS5U1idRjPGTk7ko0vs=; fh=thyOZTDsTpMl/p92p5mkh3Nxwgn64sfLd8cC4SjwP2I=; b=Yhwu3MqCNUMI4s5Gj5r+C2lUAyMvX9iZV73G4DPpwZYo8MyMEBddassmmM6F46WTKU 1IZ3Spsqq6n7tWaa6Ib8Bz1oJsHppCzC55bxhNuOVPn7wiKBNFZvLKjG6rW7yXumFFgy qeGH9FdLsGs9xfiGYM5c7A+AscrHTpF23Kb9/SecBKCLYXzpRlbSQRJ/MZaDjcvE5MCz 4Y5ehHW1QDpRkpdwW+V/y/i0sFTfyL69c84lvNYsP2IAqT4qENsAyn0nCNTjiDC5nd48 OviSoT6L0zOqxwTwFocnJG9RZsyDOivuGXvgxt+D+4UZy105X12jjZ2Rq2EFRx5ImQ6x YGqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DJ7tz2OK; 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 w15-20020a170902e88f00b001cc5f51b1ecsi11779396plg.347.2023.11.21.16.55.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 16:55:21 -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=DJ7tz2OK; 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 95BBA8129E3A; Tue, 21 Nov 2023 16:55:20 -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 S234780AbjKVAzL (ORCPT + 99 others); Tue, 21 Nov 2023 19:55:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjKVAzK (ORCPT ); Tue, 21 Nov 2023 19:55:10 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1BE4112; Tue, 21 Nov 2023 16:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700614507; x=1732150507; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5v2P07ds92gacwG7jBUufrR4IYudUYskFFuQRoGYaSA=; b=DJ7tz2OK7o+95BYnKLB8wEGlrZ9zo8I9c95GTh8iG6bjytjbX2Gn1llN e3cfTQmiauNEH0BXrkTbAIN1BDS7Rxuoihs87VFiJd0XfihLwNWjTMtQe tCY7IgsuIpUIh07mJlgOSJD0gsQ6tXZcApOiai0103PQ++UUPayPM4izI AO1f8YNu7qSCsVP8yswJPjnGQvrNo1FQZblyS1l5vI+iiC6ZxRQcDmAUi YyLU4CysNRlhlqihS7Wx6+VsOuwi3J91rbjYsvqgDRW6mPewTd34jH5hP tirCIp/nNibhoJUf3zUVkWAyqanSouuyZR2RHBWXyB1QVkBHGhVRpx3VI w==; X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="5088477" X-IronPort-AV: E=Sophos;i="6.04,217,1695711600"; d="scan'208";a="5088477" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 16:55:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="716674287" X-IronPort-AV: E=Sophos;i="6.04,217,1695711600"; d="scan'208";a="716674287" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 21 Nov 2023 16:55:02 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r5bW8-0008T4-0d; Wed, 22 Nov 2023 00:55:00 +0000 Date: Wed, 22 Nov 2023 08:54:57 +0800 From: kernel test robot To: Nuno Sa via B4 Relay , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Olivier MOYSAN , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Frank Rowand , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Nuno Sa Subject: Re: [PATCH 10/12] iio: adc: ad9467: convert to backend framework Message-ID: <202311220807.NUS4r7ML-lkp@intel.com> References: <20231121-dev-iio-backend-v1-10-6a3d542eba35@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121-dev-iio-backend-v1-10-6a3d542eba35@analog.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, RCVD_IN_DNSWL_BLOCKED,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]); Tue, 21 Nov 2023 16:55:20 -0800 (PST) Hi Nuno, kernel test robot noticed the following build warnings: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus robh/for-next linus/master v6.7-rc2 next-20231121] [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/Nuno-Sa-via-B4-Relay/driver-core-allow-modifying-device_links-flags/20231121-182010 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20231121-dev-iio-backend-v1-10-6a3d542eba35%40analog.com patch subject: [PATCH 10/12] iio: adc: ad9467: convert to backend framework config: powerpc-randconfig-r071-20231122 (https://download.01.org/0day-ci/archive/20231122/202311220807.NUS4r7ML-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231122/202311220807.NUS4r7ML-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/202311220807.NUS4r7ML-lkp@intel.com/ smatch warnings: drivers/iio/adc/ad9467.c:276 ad9467_get_scale() warn: unsigned 'vref_val' is never less than zero. vim +/vref_val +276 drivers/iio/adc/ad9467.c ad67971202381c Michael Hennerich 2020-03-24 270 a78b758afbce92 Nuno Sa 2023-11-21 271 static int ad9467_get_scale(struct ad9467_state *st, int *val, int *val2) ad67971202381c Michael Hennerich 2020-03-24 272 { 337dbb6ec1acc2 Alexandru Ardelean 2020-09-24 273 unsigned int i, vref_val; ad67971202381c Michael Hennerich 2020-03-24 274 ad67971202381c Michael Hennerich 2020-03-24 275 vref_val = ad9467_spi_read(st->spi, AN877_ADC_REG_VREF); d1e957a3e7676f Nuno Sa 2023-11-21 @276 if (vref_val < 0) d1e957a3e7676f Nuno Sa 2023-11-21 277 return vref_val; ad67971202381c Michael Hennerich 2020-03-24 278 a78b758afbce92 Nuno Sa 2023-11-21 279 vref_val &= st->info->vref_mask; ad67971202381c Michael Hennerich 2020-03-24 280 a78b758afbce92 Nuno Sa 2023-11-21 281 for (i = 0; i < st->info->num_scales; i++) { a78b758afbce92 Nuno Sa 2023-11-21 282 if (vref_val == st->info->scale_table[i][1]) ad67971202381c Michael Hennerich 2020-03-24 283 break; ad67971202381c Michael Hennerich 2020-03-24 284 } ad67971202381c Michael Hennerich 2020-03-24 285 a78b758afbce92 Nuno Sa 2023-11-21 286 if (i == st->info->num_scales) ad67971202381c Michael Hennerich 2020-03-24 287 return -ERANGE; ad67971202381c Michael Hennerich 2020-03-24 288 a78b758afbce92 Nuno Sa 2023-11-21 289 __ad9467_get_scale(st, i, val, val2); ad67971202381c Michael Hennerich 2020-03-24 290 ad67971202381c Michael Hennerich 2020-03-24 291 return IIO_VAL_INT_PLUS_MICRO; ad67971202381c Michael Hennerich 2020-03-24 292 } ad67971202381c Michael Hennerich 2020-03-24 293 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki