Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1019967iob; Fri, 13 May 2022 19:53:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx6oeJxH+0mID5GIGTTiOBFOo4lt7lN4rIDLpGGr21CR7ZsDccdYH/+XlE1CkGdT7iXdU+ X-Received: by 2002:a5d:4e45:0:b0:20a:d742:608a with SMTP id r5-20020a5d4e45000000b0020ad742608amr6340222wrt.84.1652496830260; Fri, 13 May 2022 19:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652496830; cv=none; d=google.com; s=arc-20160816; b=Mnf7Mk1JcRXRhswsR+g9m+rxZ/Sj2f/6ZpN2gxBHJg9kwPBEBRwWBQVotuofgBg0M5 vIjECRZGGWKuGpovm+PXcSKa3oyvT3rbMy1t41tZfPgG72z7bQ+sB3PSXGgsecYsWFMU MI3eO6gLJQp3B1CYIY7gomlkyLwesbti66jzx0T37/jkXxNsw4YjglxzqhEKZStroLXP MlcJ06xG8I7oR/m6nE5rVh7EzAVFHxGYECj+cQCl5VckXJIAdDutn2CNZYuUe5ja4p15 VI1uV5FqFujGk1JOMtP6sH2ORn5vVbcAVHMuIhAQKdsaTgB51Mp3I3bX+3VRBjaEOsGL zJ5Q== 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=fmD/OZd7VwVw62lm5pv79ndMnPKuZpuV1q6poXtcx7w=; b=t7nU7BqQdHFT3567mZLiHs9DGmFuCR8volxWj3cPOv1DUxEF8mJjll6/QYHqiP29PO OlsfYzb3CLTWg0QmWVRWTOuv6DjykIY/DwB30mjmzhcZEYAV9lw2N7yUQjaqJtxMvEFk HNKW0bZ0yi/Ywh9Gr3YtA1j3h97SZduBZqDoPZZFl6h7O4dz55h0n6TvGZQAe5ifPj/6 zBEBgZHGtWgVs//tn6hyME+goYezKpapqMlEV19WsHM2eh43LLclWSa9lDFuV26R2l7n Z2dkQLIl2m3tLnnoPSIsgR0tsaWhSWNNBiUA+UJPiefvY96Fmr2b/s1kzDYrC7jj2SVs VoJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OmX+wI+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p9-20020a1c7409000000b00393fafa1ff1si6383403wmc.21.2022.05.13.19.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:53:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OmX+wI+5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 96AEE38586A; Fri, 13 May 2022 16:40:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359846AbiEMBAq (ORCPT + 99 others); Thu, 12 May 2022 21:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359829AbiEMBAm (ORCPT ); Thu, 12 May 2022 21:00:42 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87FA1111; Thu, 12 May 2022 18:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652403640; x=1683939640; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=a+1Fqogl6MRxCjd5uyzI3/s5nb7F3MKz0w+tdYBiDPk=; b=OmX+wI+5AJDMrbystAAwy0A1NGM7/L9FcFjZf+Q+YyA4CdyDO7DoiIZX IjJOX7o8QGDWa2uqO/fR3Oz8iZpXXvyzjUe1VFSUbc5lJyMP+GZi2QYnv efI+y21O77sLU9OdAZ34EcPbtRjYTtKY9qcXo50ikd1MZBdCoHIjxwh7F B4hQ0p5pKIIvUmVUEv/K8a/dRz+54bqhiS+vGogQWZE+lVC0YhCvHgn81 scXzbv45z3PdliTPWbqq4TqVmJsP/pCqO/O+Vi56MG1DxEM/Z1+afxJRJ grR4KeHPe1Hexjf6x5HJfMJMoDbz2h8z6xfcMsxQ46TRgawTklNXdCP8m g==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="269014047" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="269014047" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 18:00:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="603623377" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 12 May 2022 18:00:24 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1npJfH-000L7m-5u; Fri, 13 May 2022 01:00:19 +0000 Date: Fri, 13 May 2022 09:00:14 +0800 From: kernel test robot To: LI Qingwu , jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, tomas.melin@vaisala.com, andy.shevchenko@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-iio@vger.kernel.org Subject: Re: [PATCH V5 3/5] iio: accel: sca3300: modified to support multi chips Message-ID: <202205130824.ObRAkagG-lkp@intel.com> References: <20220512160312.3880433-4-Qing-wu.Li@leica-geosystems.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220512160312.3880433-4-Qing-wu.Li@leica-geosystems.com.cn> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi LI, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on v5.18-rc6 next-20220512] [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/LI-Qingwu/iio-accel-sca3300-add-compatible-for-scl3300/20220513-000857 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: hexagon-randconfig-r041-20220512 (https://download.01.org/0day-ci/archive/20220513/202205130824.ObRAkagG-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 9519dacab7b8afd537811fc2abaceb4d14f4e16a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/15579266e58d7cdf4ff8e7ad7a4fa30a0bd3a589 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review LI-Qingwu/iio-accel-sca3300-add-compatible-for-scl3300/20220513-000857 git checkout 15579266e58d7cdf4ff8e7ad7a4fa30a0bd3a589 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/iio/accel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/iio/accel/sca3300.c:288:54: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] if (sca_data->chip->avail_modes_table[i] == reg_val&0x03) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ drivers/iio/accel/sca3300.c:288:54: note: place parentheses around the '==' expression to silence this warning if (sca_data->chip->avail_modes_table[i] == reg_val&0x03) ^ ( ) drivers/iio/accel/sca3300.c:288:54: note: place parentheses around the & expression to evaluate it first if (sca_data->chip->avail_modes_table[i] == reg_val&0x03) ^ ( ) 1 warning generated. vim +288 drivers/iio/accel/sca3300.c 276 277 static int sca3300_get_op_mode(struct sca3300_data *sca_data, int *index) 278 { 279 int reg_val; 280 int ret; 281 int i; 282 283 ret = sca3300_read_reg(sca_data, SCA3300_REG_MODE, ®_val); 284 if (ret) 285 return ret; 286 287 for (i = 0; i < sca_data->chip->num_avail_modes; i++) { > 288 if (sca_data->chip->avail_modes_table[i] == reg_val&0x03) 289 break; 290 } 291 292 if (i >= sca_data->chip->num_avail_modes) 293 return -EINVAL; 294 295 *index = i; 296 return 0; 297 } 298 -- 0-DAY CI Kernel Test Service https://01.org/lkp