Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1168646rdh; Fri, 24 Nov 2023 06:40:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFINSghp4IZx2zkr8qm+cOlhu/6eAqP99dresP1R7MJYPBsHced6eiG92V+ut8nRo6B3/Fn X-Received: by 2002:a05:6a00:44cd:b0:6c3:6148:570f with SMTP id cv13-20020a056a0044cd00b006c36148570fmr3692923pfb.33.1700836817833; Fri, 24 Nov 2023 06:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700836817; cv=none; d=google.com; s=arc-20160816; b=LgIwY4hRBptKYydkj8RUFiDBAJN93gClHlaW1MPvbzgQQUaWPAFhbO1suUSZiwXtbx WTe0N1Hx9J0EtUVd3VT1Uy/qlFX9nP81Z6uGF12G6lhAQgtZDp1NOAu3R8d/5xRs2iXI LSSLiCjc/drNtMD6pX/joHk/HHmNOcAq/4wyEiSCsC2dNgITvYWNpcMkpQ3VMGp/SJ5y FveDpcRXCa0WPgVNIoahhC3ToxFl6BJwUcHj2vuWezgFOZsUZq/+m0ejC8DO3DOEzOGC ZFss5jENM1L3UDEqMwyD7HejhAPFCi0RBAXgahyuD3rgUOioB3k6LqZ0mQvF4vIjqOJE EfGA== 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=dPp80ekQDLJtSwQJhXD0QunNmiejf7VhxCbt9QqW3xI=; fh=SJvldtQU6Of9CDhpX/WQ6PKCv16zczB5uim7poTa74k=; b=NX1Oe6cO1r60d6nPUXK5bksjn9DzHAOnktdok7W+tWGh2zfdxJi4ZoDJj5Tp610h7F 5N2TvIc8m1seupNd2NU1OjfPf5s3EhhgiQS9r2AgQqrR8/oHxEJcLEv1afwqQ6lcXQ9n O8JovqqF+eDfuHcg5TUSXWMAX+f79sDcRxPZIAfYHrh0J1eC9CQDUHH46G+wbIAJRrdK sPXzChAWSuSXvgoJ1FgTAiAIv4I/4vrB6dIWLzLD2UWAbh+IqO8+QTpAN9tRsl5s3auG 9cpKh4/ssn5eKmpQk8ulNJM/io/TkhBTquhjGdKDXzkLeh1c8UXOrHMsoKErhSHt4H0L 94IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eu/d/HGM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q4-20020a631f44000000b005b403446f1dsi3644177pgm.129.2023.11.24.06.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 06:40:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eu/d/HGM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 A5A57816692A; Fri, 24 Nov 2023 06:40:16 -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 S230159AbjKXOkE (ORCPT + 99 others); Fri, 24 Nov 2023 09:40:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbjKXOkD (ORCPT ); Fri, 24 Nov 2023 09:40:03 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F422919A2; Fri, 24 Nov 2023 06:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700836810; x=1732372810; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gXtrNk7qmb9HKWUJ2OdFj02KpJ3qMix92waD+ItrKSQ=; b=eu/d/HGMqZnB6FBn4o5A2WOGw1ivb29SyjRHOE+Vna1U9iVlKjSG1TKn TAzczBWqPEEfJYIKoiUqpvVNi/opWES2g/Laqp244AGug+KyfBfbO6Ex+ YggyaxVRVzubPQxLu1/XzQzuyaJZENvBJVdbo4bny+NnBTSVeKrGVvgsf /y5UE8G7rEcaprk1LD6WTiAL4FzoB/cn+APAck7l5VzsE5GsDkxCyau3d LpHQ+3Epamz7Wy0UNuboR69wBrgCa/VaLsbTzCLWxfGJCY37BLYrkMa0n j/JiCYT1ewe9o6DMZrTtXcUFAEUSuv6mmlX8fRXRggjP1ev1UJLjOQvIN A==; X-IronPort-AV: E=McAfee;i="6600,9927,10904"; a="395248997" X-IronPort-AV: E=Sophos;i="6.04,224,1695711600"; d="scan'208";a="395248997" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2023 06:40:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10904"; a="760975134" X-IronPort-AV: E=Sophos;i="6.04,224,1695711600"; d="scan'208";a="760975134" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 24 Nov 2023 06:40:07 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r6XLg-0002tX-0t; Fri, 24 Nov 2023 14:40:04 +0000 Date: Fri, 24 Nov 2023 22:39:46 +0800 From: kernel test robot To: Crt Mori , Jonathan Cameron Cc: oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Crt Mori Subject: Re: [PATCH 1/2] iio: temperature: mlx90635 MLX90635 IR Temperature sensor Message-ID: <202311241512.ZG52ib9O-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-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]); Fri, 24 Nov 2023 06:40:16 -0800 (PST) Hi Crt, 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/Crt-Mori/iio-temperature-mlx90635-MLX90635-IR-Temperature-sensor/20231122-202635 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/aa36393700ff783274894186366a152bb27e58ff.1700648165.git.cmo%40melexis.com patch subject: [PATCH 1/2] iio: temperature: mlx90635 MLX90635 IR Temperature sensor config: x86_64-randconfig-122-20231123 (https://download.01.org/0day-ci/archive/20231124/202311241512.ZG52ib9O-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241512.ZG52ib9O-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/202311241512.ZG52ib9O-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/iio/temperature/mlx90635.c:380:12: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] !(reg_status & MLX90635_STAT_END_CONV) == 0, ^ ~~ include/linux/regmap.h:124:58: note: expanded from macro 'regmap_read_poll_timeout' __tmp = read_poll_timeout(regmap_read, __ret, __ret || (cond), \ ^~~~ include/linux/iopoll.h:47:7: note: expanded from macro 'read_poll_timeout' if (cond) \ ^~~~ drivers/iio/temperature/mlx90635.c:380:12: note: add parentheses after the '!' to evaluate the comparison first drivers/iio/temperature/mlx90635.c:380:12: note: add parentheses around left hand side expression to silence this warning >> drivers/iio/temperature/mlx90635.c:380:12: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] !(reg_status & MLX90635_STAT_END_CONV) == 0, ^ ~~ include/linux/regmap.h:124:58: note: expanded from macro 'regmap_read_poll_timeout' __tmp = read_poll_timeout(regmap_read, __ret, __ret || (cond), \ ^~~~ include/linux/iopoll.h:58:3: note: expanded from macro 'read_poll_timeout' (cond) ? 0 : -ETIMEDOUT; \ ^~~~ drivers/iio/temperature/mlx90635.c:380:12: note: add parentheses after the '!' to evaluate the comparison first drivers/iio/temperature/mlx90635.c:380:12: note: add parentheses around left hand side expression to silence this warning 2 warnings generated. vim +380 drivers/iio/temperature/mlx90635.c 356 357 static int mlx90635_perform_measurement_burst(struct mlx90635_data *data) 358 { 359 unsigned int reg_status; 360 int refresh_time; 361 int ret; 362 363 ret = regmap_write_bits(data->regmap, MLX90635_REG_STATUS, 364 MLX90635_STAT_END_CONV, MLX90635_STAT_END_CONV); 365 if (ret < 0) 366 return ret; 367 368 ret = mlx90635_calculate_dataset_ready_time(data, &refresh_time); 369 if (ret < 0) 370 return ret; 371 372 ret = regmap_write_bits(data->regmap, MLX90635_REG_CTRL2, 373 MLX90635_CTRL2_SOB(1), MLX90635_CTRL2_SOB(1)); 374 if (ret < 0) 375 return ret; 376 377 msleep(refresh_time); /* Wait minimum time for dataset to be ready */ 378 379 ret = regmap_read_poll_timeout(data->regmap, MLX90635_REG_STATUS, reg_status, > 380 !(reg_status & MLX90635_STAT_END_CONV) == 0, 381 MLX90635_TIMING_POLLING, MLX90635_READ_RETRIES * 10000); 382 if (ret < 0) { 383 dev_err(&data->client->dev, "data not ready"); 384 return -ETIMEDOUT; 385 } 386 387 return ret; 388 } 389 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki