]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regulator: core: Stub devm_regulator_bulk_get_const() if !CONFIG_REGULATOR
authorDouglas Anderson <dianders@chromium.org>
Fri, 30 Aug 2024 14:35:12 +0000 (07:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:32 +0000 (11:11 +0200)
commitc5e236744db66c2eb02ac674c5e4cae0fa2abc1a
tree1f2e24e41753b4005b3363a21e57bfc782b016af
parentdc2694e474b708115128fe5418765b37108cb381
regulator: core: Stub devm_regulator_bulk_get_const() if !CONFIG_REGULATOR

[ 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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408301813.TesFuSbh-lkp@intel.com/
Cc: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patch.msgid.link/20240830073511.1.Ib733229a8a19fad8179213c05e1af01b51e42328@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/regulator/consumer.h