Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1159070imk; Sun, 3 Jul 2022 19:06:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tJtyveKOQIPEHtMoDoAO1YXmXg8BoXDEVveKbBknKw1Law8D7e8RC8WgXB034n77EwcFdT X-Received: by 2002:a17:906:488d:b0:726:2cdc:dc6c with SMTP id v13-20020a170906488d00b007262cdcdc6cmr25757429ejq.62.1656900379713; Sun, 03 Jul 2022 19:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656900379; cv=none; d=google.com; s=arc-20160816; b=NV1jlxkHB2xA/SYGEN7CFfdntxkZ5AvlWrNIJdRgAWhtWy9sQOyOJrD/RbMhTizAOf mu6CpW74NmXwoZ4m1pzlLV+bJ85dvFRxNeMIdsZPQ5sUSEdeCXY4jzDlVRQcw0vBheTt yzGOC+BnBl4g+POp4jVe5DM8wKlQXZB2nb+1lGPOIrzUlyN3ZIT3CZViwfNyJNq5ESLX GWWpBVmLMYvb/As8DjFP8pxOK6bl0VNtEIkZ5Os/3Tg5S2NmOsgM+oYH4ikZPDxGwVuE 7Fn5B1V0VBZ25vBf1JVRL9ymB0HtRKfj+6ncUsYzoZkBr6+Cy/Ar+/y/siX6H6Td1bGa VZog== 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=8qiY4e+1GNQgxfD0wlGX2Rws5V5VrRGIAnA0cRVSQLM=; b=afDn2pQKV2kzPD58f7a37F1VnhgIOygFN/56xb7qBuiL3XeN4JvuhJOp/GrHwRLw02 SI3jWAN5cPf9SWoD7ef6E96JpujTGPAR1XoageKn9o8qhfsYl9a2FwafTTYVi6BwsBgX KValk5M7YH4M6fe/88B1APk3MKoT5wslXI0YGMuk5PpLnmYQsUceywv+yURvSdJVGWmQ D+MCji0YjhAm5RqHQl+F8VHchU1VBKt1x+A+5K/FV9kVVQ6OWhBpDOsZVN2tEuO9DTnp wj6sA8Y1FZABCOuUqQcZmkjBwk3PVjJyUwA4DamEJV5n8rllKh0gKuLcrWnOCsumtg7x 7smg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BQsT7KPa; 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 sc36-20020a1709078a2400b00726324d669bsi9139062ejc.480.2022.07.03.19.05.54; Sun, 03 Jul 2022 19:06:19 -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=BQsT7KPa; 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 S229461AbiGDCCC (ORCPT + 99 others); Sun, 3 Jul 2022 22:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbiGDCB7 (ORCPT ); Sun, 3 Jul 2022 22:01:59 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF7FD2DD9; Sun, 3 Jul 2022 19:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656900117; x=1688436117; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZQw6pW9EmGvVYdueRO3MbRtsv+URwaPloyo35DtcE+k=; b=BQsT7KPalNxFxpkqBOGFhRPyBqTSnZuM5XO8MpsZJ7TY38nF3l5kdi6s VqQaRqJyq/HLOj+bp5RzpJ60SYGN+TWbdyRQK2vUtc7WD/Pqlv3heN6kC wse2FAtxi5gEDmhH3AEtjT3Ph37JslTv0dNZz5UMwmbrfIXybr8xN5GNp OdPi38Gk4lMfNZSeK4+gymuxjAjgYyf2eTi0MWWdOQnfNnWjZyRqzEtWX iJXt8w+LC2RibEbh5BzYHcW6OUKFF7jVtxYUNg/4W6i/SheY+dLUOmuNW p2cnBImppAJpEzbOyAgNRYaTIrHiHMMmphFueeRkTvpoCuMDSXeDzdNDJ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="281770640" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="281770640" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2022 19:01:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="566984603" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 03 Jul 2022 19:01:49 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o8BPI-000HKF-JY; Mon, 04 Jul 2022 02:01:48 +0000 Date: Mon, 4 Jul 2022 10:01:10 +0800 From: kernel test robot To: Angel Iglesias , Jonathan Cameron Cc: kbuild-all@lists.01.org, Dan Carpenter , Angel Iglesias , Lars-Peter Clausen , Paul Cercueil , Ulf Hansson , "Rafael J. Wysocki" , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/5] iio: pressure: bmp280: Add support for BMP380 sensor family Message-ID: <202207040924.TZR7AyQR-lkp@intel.com> References: <20220704003219.208409-1-ang.iglesiasg@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220704003219.208409-1-ang.iglesiasg@gmail.com> X-Spam-Status: No, score=-5.1 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 69cb6c6556ad89620547318439d6be8bb1629a5a] url: https://github.com/intel-lab-lkp/linux/commits/Angel-Iglesias/Add-support-for-pressure-sensor-Bosch-BMP380/20220704-083456 base: 69cb6c6556ad89620547318439d6be8bb1629a5a config: ia64-randconfig-r026-20220703 (https://download.01.org/0day-ci/archive/20220704/202207040924.TZR7AyQR-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 11.3.0 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/3003e6a1c75431265ca5bc938166239ce722c2df git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Angel-Iglesias/Add-support-for-pressure-sensor-Bosch-BMP380/20220704-083456 git checkout 3003e6a1c75431265ca5bc938166239ce722c2df # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/iio/pressure/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/iio/pressure/bmp280-core.c: In function 'bmp380_chip_config': >> drivers/iio/pressure/bmp280-core.c:979:33: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration] 979 | FIELD_PREP(BMP380_MODE_MASK, BMP380_MODE_NORMAL)); | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/FIELD_PREP +979 drivers/iio/pressure/bmp280-core.c 967 968 static int bmp380_chip_config(struct bmp280_data *data) 969 { 970 u8 osrs; 971 unsigned int tmp; 972 int ret; 973 974 /* configure power control register */ 975 ret = regmap_write_bits(data->regmap, BMP380_REG_POWER_CONTROL, 976 BMP380_CTRL_SENSORS_MASK | BMP380_MODE_MASK, 977 BMP380_CTRL_SENSORS_PRESS_EN | 978 BMP380_CTRL_SENSORS_TEMP_EN | > 979 FIELD_PREP(BMP380_MODE_MASK, BMP380_MODE_NORMAL)); 980 if (ret < 0) { 981 dev_err(data->dev, 982 "failed to write operation control register\n"); 983 return ret; 984 } 985 986 /* configure oversampling */ 987 osrs = FIELD_PREP(BMP380_OSRS_TEMP_MASK, data->oversampling_temp) | 988 FIELD_PREP(BMP380_OSRS_PRESS_MASK, data->oversampling_press); 989 990 ret = regmap_write_bits(data->regmap, BMP380_REG_OSR, 991 BMP380_OSRS_TEMP_MASK | BMP380_OSRS_PRESS_MASK, 992 osrs); 993 if (ret < 0) { 994 dev_err(data->dev, "failed to write oversampling register\n"); 995 return ret; 996 } 997 998 /* configure output data rate */ 999 ret = regmap_write_bits(data->regmap, BMP380_REG_ODR, 1000 BMP380_ODRS_MASK, BMP380_ODRS_50HZ); 1001 if (ret < 0) { 1002 dev_err(data->dev, "failed to write ODR selection register\n"); 1003 return ret; 1004 } 1005 1006 /* set filter data */ 1007 ret = regmap_update_bits(data->regmap, BMP380_REG_CONFIG, 1008 BMP380_FILTER_MASK, 1009 FIELD_PREP(BMP380_FILTER_MASK, BMP380_FILTER_3X)); 1010 if (ret < 0) { 1011 dev_err(data->dev, "failed to write config register\n"); 1012 return ret; 1013 } 1014 1015 /* wait startup_time before verifying config changes */ 1016 usleep_range(data->start_up_time, data->start_up_time + 100); 1017 1018 /* check config error flag */ 1019 ret = regmap_read(data->regmap, BMP380_REG_ERROR, &tmp); 1020 if (ret < 0) { 1021 dev_err(data->dev, 1022 "failed to read error register\n"); 1023 return ret; 1024 } 1025 if (tmp & BMP380_ERR_CONF_MASK) { 1026 dev_warn(data->dev, 1027 "sensor flagged configuration as incompatible\n"); 1028 return -EINVAL; 1029 } 1030 1031 return 0; 1032 } 1033 -- 0-DAY CI Kernel Test Service https://01.org/lkp