[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202510030902.aQS5rL8n-lkp@intel.com>
Date: Fri, 3 Oct 2025 11:36:03 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: oe-kbuild@...ts.linux.dev,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
linux-mediatek@...ts.infradead.org
Cc: lkp@...el.com, oe-kbuild-all@...ts.linux.dev, lee@...nel.org,
robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
matthias.bgg@...il.com, angelogioacchino.delregno@...labora.com,
lgirdwood@...il.com, broonie@...nel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
kernel@...labora.com, wenst@...omium.org,
igor.belwon@...tallysanemainliners.org
Subject: Re: [PATCH v7 6/9] regulator: Add support for MediaTek MT6373 SPMI
PMIC Regulators
Hi AngeloGioacchino,
kernel test robot noticed the following build warnings:
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/AngeloGioacchino-Del-Regno/dt-bindings-regulator-Document-MediaTek-MT6316-PMIC-Regulators/20251002-170532
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
patch link: https://lore.kernel.org/r/20251002090028.1796462-7-angelogioacchino.delregno%40collabora.com
patch subject: [PATCH v7 6/9] regulator: Add support for MediaTek MT6373 SPMI PMIC Regulators
config: arm-randconfig-r071-20251003 (https://download.01.org/0day-ci/archive/20251003/202510030902.aQS5rL8n-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
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 <lkp@...el.com>
| Reported-by: Dan Carpenter <dan.carpenter@...aro.org>
| Closes: https://lore.kernel.org/r/202510030902.aQS5rL8n-lkp@intel.com/
smatch warnings:
drivers/regulator/mt6373-regulator.c:664 mt6373_regulator_probe() warn: passing zero to 'PTR_ERR'
vim +/PTR_ERR +664 drivers/regulator/mt6373-regulator.c
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 645 static int mt6373_regulator_probe(struct platform_device *pdev)
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 646 {
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 647 struct irq_fwspec fwspec = {
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 648 .param_count = 2,
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 649 .param = { 0, IRQ_TYPE_LEVEL_HIGH },
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 650 };
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 651 struct device_node *interrupt_parent;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 652 struct regulator_config config = {};
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 653 struct mt6373_regulator_info *info;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 654 struct device *dev = &pdev->dev;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 655 struct regulator_dev *rdev;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 656 struct irq_domain *domain;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 657 bool is_vbuck4_hw_ctrl;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 658 bool is_cw_variant;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 659 int i, ret;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 660 u32 val;
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 661
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 662 config.regmap = mt6373_spmi_register_regmap(dev);
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 663 if (!config.regmap)
This should be if (IS_ERR(config.regmap)) ...
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 @664 return dev_err_probe(dev, PTR_ERR(config.regmap)i,
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 665 "Cannot get regmap\n");
910ce1c7c9122a AngeloGioacchino Del Regno 2025-10-02 666 config.dev = dev;
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists