Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1507399iog; Sat, 25 Jun 2022 11:10:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tban6VHXRLmqMoVL1KJSLFgZYN3llH/wwdrPiGfywsIWUSdfzbXx67E6zkPXiBNbOJJ1mA X-Received: by 2002:aa7:d29a:0:b0:435:705f:1319 with SMTP id w26-20020aa7d29a000000b00435705f1319mr6550541edq.54.1656180657875; Sat, 25 Jun 2022 11:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656180657; cv=none; d=google.com; s=arc-20160816; b=yiz6ZMA4pTX9ozlMPuecyl7Cs92HlpVlY9W+lcV1ddy8VGlKQSpGBWPOgjI0ZKH8dZ 0IiJQJN2uTDxbuHtZUf0A+epoQCvPuvOyZDcdtLlnNkNi0A/aC3a9g1YcI+erO/VHHhJ kSJ9hKXbPGsGs+D5V+xkwTG3q/8TWQhgv86dBoA1ErhkBlYGzn21lkics7SenKmjjTDq JdR90mT7mg30paueYZ0lvB0sI0ub3S8TLlqQJCpRDec6rgw4aaexPtzjT3AOdxHxLt/l JxZd1cpEaLdpg7D/AD+i2zpPQF2hlYSd9eLfgimIs26r4K+PyAFLVdWB759iOpA8AzQC cEAw== 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=pt0J8M5dPq2nTznwu5hnt9YghuLLYA0sQ7FtjDbRpcU=; b=rmjUZPT8khnRBPpVC+NRh6oi93fqJ7T5FCTRHIEhw5pJw7/oN5anatv6P5FTuMev6Q x+m7sUi0E/38+kC8EVq8b0Ena4xHc1eBSOVd3H9CadFYEVPJX2gex1MW5vnyr+KFCj5U A6T083lhEDoDww2saYGIISIiZp054ToGOxEJM+fiEYdNnh2NiZOW1tdthZhWKGW+3eCd llG3q23/gCJDawec3xAcKZVitafp4Iu6o0M8Bwnh1hz6ZHgG5OwkFggVctCkhYRBIkbk QdUjNVM05+Eco2I31wDtiEyi1j5ueEGkHBMCVAUaE6YrkgytTxcNy58BWvuU2BfmhODb rO8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="E0Ovwxg/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc13-20020a1709071c0d00b006feb4205ecdsi4527594ejc.742.2022.06.25.11.10.28; Sat, 25 Jun 2022 11:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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="E0Ovwxg/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S233104AbiFYSA1 (ORCPT + 99 others); Sat, 25 Jun 2022 14:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231311AbiFYSAZ (ORCPT ); Sat, 25 Jun 2022 14:00:25 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3167A1402B; Sat, 25 Jun 2022 11:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656180024; x=1687716024; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8tYjHyY4Ax6Joz9chEzUSENBJB8v9lRCTyqfGbwzEPE=; b=E0Ovwxg/VuoRlOY9RDpAsVDK6ynACT02DDFyYDQ+5sH5UXylWdW0fA8s RJm18zmj2g8+DlpR6kaXaw7837EYoaBuxLYb/gJvlWKK6pVfp3l0PBe6D RsdLPB+WmV9CdgKYo5ORYyIvlERcFV5JkouH7UgK20jrwSfxNIC2/2FfS eRWN0ipJIoJKixY+Ws+14UrrTwlCGsmS2YGaT9m5/367heJ7gvbtz+gck VahMe+wU0xxpIFFlcpVREd8ocSmST0cqHrbgoq1OHMjTowVKt1bNxlJnc zLLqd2sb1kQZXEx1Vp56rD+61eaJ1HuOtzxZNQ5JGiqsJmRLZxMhuPUFA A==; X-IronPort-AV: E=McAfee;i="6400,9594,10389"; a="345211995" X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="345211995" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2022 11:00:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,222,1650956400"; d="scan'208";a="616307820" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 25 Jun 2022 11:00:21 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o5A4y-000667-OO; Sat, 25 Jun 2022 18:00:20 +0000 Date: Sun, 26 Jun 2022 01:59:58 +0800 From: kernel test robot To: Angel Iglesias Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Angel Iglesias , Jonathan Cameron , Lars-Peter Clausen , "Rafael J. Wysocki" , Ulf Hansson , Paul Cercueil , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] iio: pressure: bmp280: Add support for BMP380 sensor family Message-ID: <202206260111.QN0oWihy-lkp@intel.com> References: <20220625150921.47769-1-ang.iglesiasg@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220625150921.47769-1-ang.iglesiasg@gmail.com> X-Spam-Status: No, score=-5.0 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,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 Hi Angel, Thank you for the patch! Yet something to improve: [auto build test ERROR on jic23-iio/togreg] [also build test ERROR on robh/for-next linus/master v5.19-rc3 next-20220624] [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/Angel-Iglesias/dt-bindings-iio-pressure-bmp085-Add-BMP380-compatible-string/20220625-231424 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: i386-randconfig-a002 compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 42a7ddb428c999229491b0effbb1a4059149fba8) 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/56e3f8aecddacdbe204fbe5e28032ef2befae647 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Angel-Iglesias/dt-bindings-iio-pressure-bmp085-Add-BMP380-compatible-string/20220625-231424 git checkout 56e3f8aecddacdbe204fbe5e28032ef2befae647 # 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=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>, old ones prefixed by <<): >> drivers/iio/pressure/bmp280-core.c:1000:10: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (tmp && BMP380_ERR_CONF_MASK) { ^ ~~~~~~~~~~~~~~~~~~~~ drivers/iio/pressure/bmp280-core.c:1000:10: note: use '&' for a bitwise operation if (tmp && BMP380_ERR_CONF_MASK) { ^~ & drivers/iio/pressure/bmp280-core.c:1000:10: note: remove constant to silence this warning if (tmp && BMP380_ERR_CONF_MASK) { ~^~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. -- >> ERROR: modpost: "__divdi3" [drivers/iio/pressure/bmp280.ko] undefined! vim +1000 drivers/iio/pressure/bmp280-core.c 945 946 static int bmp380_chip_config(struct bmp280_data *data) 947 { 948 u8 osrs; 949 unsigned int tmp; 950 int ret; 951 952 /* configure power control register */ 953 ret = regmap_write_bits(data->regmap, BMP380_REG_POWER_CONTROL, 954 BMP380_CTRL_SENSORS_MASK | 955 BMP380_MODE_MASK, 956 BMP380_CTRL_SENSORS_PRESS_EN | 957 BMP380_CTRL_SENSORS_TEMP_EN | 958 BMP380_MODE_NORMAL); 959 if (ret < 0) { 960 dev_err(data->dev, 961 "failed to write operation control register\n"); 962 return ret; 963 } 964 965 /* configure oversampling */ 966 osrs = BMP380_OSRS_TEMP_X(data->oversampling_temp) | 967 BMP380_OSRS_PRESS_X(data->oversampling_press); 968 969 ret = regmap_write_bits(data->regmap, BMP380_REG_OSR, 970 BMP380_OSRS_TEMP_MASK | BMP380_OSRS_PRESS_MASK, 971 osrs); 972 if (ret < 0) { 973 dev_err(data->dev, "failed to write oversampling register\n"); 974 return ret; 975 } 976 977 /* configure output data rate */ 978 ret = regmap_write_bits(data->regmap, BMP380_REG_ODR, 979 BMP380_ODRS_MASK, BMP380_ODRS_50HZ); 980 if (ret < 0) { 981 dev_err(data->dev, "failed to write ODR selection register\n"); 982 return ret; 983 } 984 985 /* set filter data */ 986 ret = regmap_update_bits(data->regmap, BMP380_REG_CONFIG, 987 BMP380_FILTER_MASK, BMP380_FILTER_3X); 988 if (ret < 0) { 989 dev_err(data->dev, "failed to write config register\n"); 990 return ret; 991 } 992 993 /* check config error flag */ 994 ret = regmap_read(data->regmap, BMP380_REG_ERROR, &tmp); 995 if (ret < 0) { 996 dev_err(data->dev, 997 "failed to read error register\n"); 998 return ret; 999 } > 1000 if (tmp && BMP380_ERR_CONF_MASK) { 1001 dev_warn(data->dev, 1002 "sensor flagged configuration as incompatible\n"); 1003 ret = -EINVAL; 1004 } 1005 1006 return ret; 1007 } 1008 -- 0-DAY CI Kernel Test Service https://01.org/lkp