Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1354344rwl; Fri, 24 Mar 2023 09:24:36 -0700 (PDT) X-Google-Smtp-Source: AKy350b5XZx7fBPRWAaTqn83hlqvJKp87nvMRdDnLn9lXDCr78yMfGH19nsYCwa/ouv76D3lwQAX X-Received: by 2002:a17:906:3a83:b0:932:9502:4fd1 with SMTP id y3-20020a1709063a8300b0093295024fd1mr3255559ejd.43.1679675075772; Fri, 24 Mar 2023 09:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679675075; cv=none; d=google.com; s=arc-20160816; b=uQlsbQsTFQNZmykRNq8edULCfH/MVAUlePY1oz7NtzBhUnPqE6cbsEqfxNPP8MS2MK lt6pRyPk0xMX9SFbqzfuTc/aFqr6Iu5xjq0VS4RLyMghEUo1iOjlp1By1l1aHIh3HC1o G3vtqrM6flJwmfwYXgIrhE+T+kcWffOuksX0mpHT+hSXgvPBO3MEq+ZcJL2RQ3n3obxD 2Ebn/EvRP8JJf/4F7dL1hTH0kzOhlbuDI3TrxE8YPIeiZraAKyty6zYPXGcuiOoRYM5g Nq4vzza4+M8tCJR3GwTUw4IvImSnUIZ9Erg/BbavyMNXTQ17v7640SmkW2Rs75aiM/1X dzvg== 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=LTW1c1/smVDQUVSHmVRBvkva9xau/+0SDaiKBflkSJc=; b=QA7KZGq3QI8WGipMA7TqcdXxwNaEjYg4Tvu/2Rtl2WRda3H0JESlDcOfmvDrK8SmFP XqHZMNSawaFHOmKSxJGI52qQsggQmWlRw0YI5OxSt+PkhaQdoqkqiZRz9jszSinKvBc7 LUbdBTHsFb0UdQMWEWNP38i28BeOLXZ7jdPiY//+iS5yMYHSl6RQGAi2zzDUtclnMrYl /COm8Su4WPZSbH6/L46r9BS3wh6nXtsUVEtgb6xLvknQTsX4CNAq6Zy4783I3SzYz0Mx OQj9bY242DMPmg+s3oOCy+KQ3aAFND+zpN6zB40HXp63+R5XjYp5tOya2/4JT3+gcm9j 0g9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fbXdpj4D; 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 y24-20020a50e618000000b004af6a815065si25587474edm.592.2023.03.24.09.24.11; Fri, 24 Mar 2023 09:24:35 -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=fbXdpj4D; 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 S231629AbjCXQOf (ORCPT + 99 others); Fri, 24 Mar 2023 12:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231503AbjCXQOc (ORCPT ); Fri, 24 Mar 2023 12:14:32 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B011A65E; Fri, 24 Mar 2023 09:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679674467; x=1711210467; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Hvr/IAw6GwHmF6Ka+HdBXFuG4UC3HNZI/3j9kHSlW6I=; b=fbXdpj4DdGlcGcLDnLH8gQtCfpBG6Ng/JwpeUz+yBWgM/s2idgK9soIm XSX5wlbvpvZwAIUZt+dcoYpA/jdCZzwDOeiJcW5s1Y4C5CRdMwxRzUYrr M0KmBxr2jIamGlQ0mOitdlTaT65awe4fwOCX4XW1+DogON9lc0kJHFHO5 qPCQvSZoJhJmG6D/knRHCI6oXu64x5jkQJyF20MtVKxN13D5rdFfbzjK7 qZeOlhqqQcy4PHQ3QYk/GfT5Dqwb6+un37mfnybSsxYgCT1mjeQb1Wd1g wJsvxc5XqPgAyrazJxC7YClpfGqvCQqiiFmlZ4C79KF6be3ambO3Ou0ou g==; X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="328239375" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="328239375" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 09:14:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="676199945" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="676199945" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 24 Mar 2023 09:14:23 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pfk3a-000FS4-1E; Fri, 24 Mar 2023 16:14:22 +0000 Date: Sat, 25 Mar 2023 00:14:13 +0800 From: kernel test robot To: ChiaEn Wu , jic23@kernel.org, lars@metafoo.de, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, peterwu.pub@gmail.com, cy_huang@richtek.com, ChiaEn Wu Subject: Re: [PATCH] iio: adc: mt6370: Fix ibus and ibat scaling value of some specific vendor ID chips Message-ID: <202303250050.V7JLIADZ-lkp@intel.com> References: <1679667167-16261-1-git-send-email-chiaen_wu@richtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1679667167-16261-1-git-send-email-chiaen_wu@richtek.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=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 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 ChiaEn, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on jic23-iio/togreg] [also build test WARNING on linus/master v6.3-rc3 next-20230324] [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/ChiaEn-Wu/iio-adc-mt6370-Fix-ibus-and-ibat-scaling-value-of-some-specific-vendor-ID-chips/20230324-221545 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/1679667167-16261-1-git-send-email-chiaen_wu%40richtek.com patch subject: [PATCH] iio: adc: mt6370: Fix ibus and ibat scaling value of some specific vendor ID chips config: riscv-randconfig-r034-20230324 (https://download.01.org/0day-ci/archive/20230325/202303250050.V7JLIADZ-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/9822359d5de2dba531d882cfee6949864a2d6170 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review ChiaEn-Wu/iio-adc-mt6370-Fix-ibus-and-ibat-scaling-value-of-some-specific-vendor-ID-chips/20230324-221545 git checkout 9822359d5de2dba531d882cfee6949864a2d6170 # 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=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/iio/adc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303250050.V7JLIADZ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/iio/adc/mt6370-adc.c:306:31: warning: variable 'priv' is uninitialized when used here [-Wuninitialized] ret = mt6370_get_vendor_info(priv); ^~~~ drivers/iio/adc/mt6370-adc.c:297:30: note: initialize the variable 'priv' to silence this warning struct mt6370_adc_data *priv; ^ = NULL 1 warning generated. vim +/priv +306 drivers/iio/adc/mt6370-adc.c 293 294 static int mt6370_adc_probe(struct platform_device *pdev) 295 { 296 struct device *dev = &pdev->dev; 297 struct mt6370_adc_data *priv; 298 struct iio_dev *indio_dev; 299 struct regmap *regmap; 300 int ret; 301 302 regmap = dev_get_regmap(pdev->dev.parent, NULL); 303 if (!regmap) 304 return dev_err_probe(dev, -ENODEV, "Failed to get regmap\n"); 305 > 306 ret = mt6370_get_vendor_info(priv); 307 if (ret) 308 return dev_err_probe(dev, ret, "Failed to get vid\n"); 309 310 indio_dev = devm_iio_device_alloc(dev, sizeof(*priv)); 311 if (!indio_dev) 312 return -ENOMEM; 313 314 priv = iio_priv(indio_dev); 315 priv->dev = dev; 316 priv->regmap = regmap; 317 mutex_init(&priv->adc_lock); 318 319 ret = regmap_write(priv->regmap, MT6370_REG_CHG_ADC, 0); 320 if (ret) 321 return dev_err_probe(dev, ret, "Failed to reset ADC\n"); 322 323 indio_dev->name = "mt6370-adc"; 324 indio_dev->info = &mt6370_adc_iio_info; 325 indio_dev->modes = INDIO_DIRECT_MODE; 326 indio_dev->channels = mt6370_adc_channels; 327 indio_dev->num_channels = ARRAY_SIZE(mt6370_adc_channels); 328 329 return devm_iio_device_register(dev, indio_dev); 330 } 331 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests