From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D27B326A0B3 for ; Fri, 3 Oct 2025 08:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759480571; cv=none; b=uvfcpGmKp42f3D62jrK7GvSIbeV2k/pa0OVwHgq7pFArj2h89rf5rQ8txroyKKhJHNRF6KOI+PoRKngOXvOwRwJywzfykLsHvUCRSCIWOCDelyfjEqlSdcrGm61TecC7soF5GZBohzo7pDKBXyHKhlMxJmki7wVhE8gIsHNbnSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759480571; c=relaxed/simple; bh=PKc37E4toOI+coMwxopVyqNk25skEmj4ksL4V0/afI0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=dvXhiSLWdos+h6XFMVPswEwz/Ov4ltVUrCZ2MHYcspk33gn5VY6bmqTnzX5GhJKaLa8qN2esTo6GZuMW6fm8tAGpEysjFauyfis/UJR3Ai+HCv5o7PPolh81rSbTsJb4LNSdJUIVeAJmprhixinkCbHGNLScnMJSCUjaBtO1jcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mSj+X3hk; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mSj+X3hk" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-42557c5cedcso1093488f8f.0 for ; Fri, 03 Oct 2025 01:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1759480568; x=1760085368; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bSviWDocZr7eRFQ1iMDzT5Qi5FWE3ORY1UYGHnObtBk=; b=mSj+X3hkHQqL9nxLy8hobaLpuddY4uGLoWu2Z8d8cma35a5a79B39Z32JcJHXx61cH mpYyPa21aCT2/MA3qtyUr4Q+0wM5YZ9+OEDd26OXzN2UlIJe5uEmiT16kiQOLjS0w4Qh XcT8mO6RGQI/m6Ibca9EnCwAnMGrkVZurjQNU0LMiGtj7VO21E/QbCdWoRX95LPPYpTR w2rAIdPEsAl6GqSYkC0FC913LoWXpSKqJ2522ZJx8GnhDBQB5J/ZhQBBQXkmPyTkQbJx HiLFpKjQBqHG5hVSLEoIvdUHYpLuKWE92Vy3yRS5q8DiED35vumgcGnR/EyYU+hveFzk T2jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759480568; x=1760085368; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bSviWDocZr7eRFQ1iMDzT5Qi5FWE3ORY1UYGHnObtBk=; b=GENbB/MkeQaf+WUaImIW61h2jFhFRh/SfuFBnNKJz5Sn+wFmjVhObdBxRFBZ3gUEOJ +/IOnTPLOI2emKuux5ccJROTm61MppL+GZ/KZZ9lUx36dhCnBjLRZZY5TFcoz5Z9O6M5 cE8Yb/O3ODmSF/ADwgI/g0Ffg4uQuge0WdvNvxmM/0Tkp1SOGGHI7i5PmoPRlRx6sBA5 puX8GCDwkQw3N8IoO9bxyecG9F7w/pauy16b4nwOz8pYzO7trXNczQrA8oCa3B8ni7QQ oI51Q5LYjEsH11YTMn84nOcQJaEUJ9q2ZWQ4GM9JZPKNcMCDH4l3uNYH+j+fRqrIhRkb tKtw== X-Forwarded-Encrypted: i=1; AJvYcCWeiDORmg/r/QeVJ/5qsjOP5i7WXnKh1kPfzMGkjemgOrFkZBTREg6bgDllA8vAehqxB66EbGxTcdJ1@vger.kernel.org X-Gm-Message-State: AOJu0YytmrrXNpSAVMEVsevFs6NGGZdIFMDrXRjzGYGDaw+YfhA3o56H 58OOUQEvPNt/Dq8gFMnkOg8lHFkNYeGPqXoyDINgDDbxA4R3mWlXEMytXfmQSCOTLDE= X-Gm-Gg: ASbGncu8aHuuoKlWuP+gwxHlh1zBlAxSPHtXS3BeQbiXfKe+7OuJLIPz1A5oQGB3HY9 k2mVQ07iZvB/BwtpWcu/GAaMYnd6ghoOeU4AZi+PjLPgEuvo1F+r+ogy54/e0/xNQL+NstERCLw m6iBpvVvHdOiY1edGTVjJ6nHrE3aVKLDCYlAt1NUMkPkx1fuSdTwutX0qwZyKXeMuSvxb/jYNYc AeSXNOIBdXnUPEdkMGZVmrmB4JdFqQ7TaDpI+BOJ/sdmw8KwUAfzLRgffE1MNmoRyFfxllB++6k 2BjM6VpRGrcjCP0N2wHtBsgkQLYaffEegGdtVMkWKGxhzaqyae7Ck9g7PV3GdtlyT/mOd5+UKda ENCMBjH3/3s1Dxdd+696Pjra3GYDUbU3HJa11EyFWrZzFAyIToJIiTm7l X-Google-Smtp-Source: AGHT+IE76AssVOnYZ6flrpm/T7LxOGT/eMAoKYwNOlcK4L0ObcJKZqXObYnm2Ncd1mks7lx/eY9Deg== X-Received: by 2002:a05:6000:2887:b0:3ee:126a:7aab with SMTP id ffacd0b85a97d-425671c3abemr1117681f8f.57.1759480567855; Fri, 03 Oct 2025 01:36:07 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4255d8abf0bsm6826213f8f.17.2025.10.03.01.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Oct 2025 01:36:07 -0700 (PDT) Date: Fri, 3 Oct 2025 11:36:03 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, lgirdwood@gmail.com, broonie@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, wenst@chromium.org, igor.belwon@mentallysanemainliners.org Subject: Re: [PATCH v7 6/9] regulator: Add support for MediaTek MT6373 SPMI PMIC Regulators Message-ID: <202510030902.aQS5rL8n-lkp@intel.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251002090028.1796462-7-angelogioacchino.delregno@collabora.com> 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 | Reported-by: Dan Carpenter | 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