From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B04E2184101; Tue, 10 Sep 2024 09:49:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725961793; cv=none; b=e3Hh7Fu56xnLIU19Mg+9ww0zgJrY6JiHwuMeX/1Z1C5RHDP/QGK5hgXoC+z9TuL5Iaw6pCkrqJhwGeXLdEgHv0458VF86RzYj5UKVFwhfIHc9ymzA92vvqMGsExHrhe71QTFCqus2QfnTDonkZuJRuu1rojzLT2/KIVIx1FcxPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725961793; c=relaxed/simple; bh=7KNmYdOW1B4l5paMU207/nubvjazwbpTl3bbgjG9lnU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b2rA/5d0Bb33KHdl4o/BnQeWAgwkDfVyt/KT4Cx2A/9+GwZPhY3ZJQhnZNkn1VlaX5+x4du73Svq465yYAUO+2WagaS0yZ+BfgYpeGRuMjF6uKhRk8NDPI/CAu/ryksB7/CWtptZ0Odq+knJRK/QhSR+njRW3+CIvb8ejI2XOiQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cPN0PyE/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cPN0PyE/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 366C3C4CEC3; Tue, 10 Sep 2024 09:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725961793; bh=7KNmYdOW1B4l5paMU207/nubvjazwbpTl3bbgjG9lnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cPN0PyE/TOmRx1fwKzz0zSBcvBikHH3GrzCj4TOzp94zrPZA0tqDHENgVE9ETQi5d L788veGyEQmcLwUaZTPt5MFrkkfJZ/Jorv8NL2jjJ3Lvcv2KhEcRs9OYKBQarPnFbu bUmX2ZicvYPq794pkuF/0Cyy0Hlcq13oKAFpMlN8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Neil Armstrong , Douglas Anderson , Mark Brown , Sasha Levin Subject: [PATCH 6.10 164/375] regulator: core: Stub devm_regulator_bulk_get_const() if !CONFIG_REGULATOR Date: Tue, 10 Sep 2024 11:29:21 +0200 Message-ID: <20240910092627.992966176@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240910092622.245959861@linuxfoundation.org> References: <20240910092622.245959861@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Douglas Anderson [ Upstream commit 1a5caec7f80ca2e659c03f45378ee26915f4eda2 ] When adding devm_regulator_bulk_get_const() I missed adding a stub for when CONFIG_REGULATOR is not enabled. Under certain conditions (like randconfig testing) this can cause the compiler to reports errors like: error: implicit declaration of function 'devm_regulator_bulk_get_const'; did you mean 'devm_regulator_bulk_get_enable'? Add the stub. Fixes: 1de452a0edda ("regulator: core: Allow drivers to define their init data as const") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202408301813.TesFuSbh-lkp@intel.com/ Cc: Neil Armstrong Signed-off-by: Douglas Anderson Link: https://patch.msgid.link/20240830073511.1.Ib733229a8a19fad8179213c05e1af01b51e42328@changeid Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- include/linux/regulator/consumer.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 59d0b9a79e6e..e6ad927bb4a8 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -451,6 +451,14 @@ static inline int of_regulator_bulk_get_all(struct device *dev, struct device_no return 0; } +static inline int devm_regulator_bulk_get_const( + struct device *dev, int num_consumers, + const struct regulator_bulk_data *in_consumers, + struct regulator_bulk_data **out_consumers) +{ + return 0; +} + static inline int regulator_bulk_enable(int num_consumers, struct regulator_bulk_data *consumers) { -- 2.43.0