]> git.ipfire.org Git - thirdparty/linux.git/commit
gpio: shared: extend the ifdef guard to gpio_shared_find_entry()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Nov 2025 10:54:51 +0000 (11:54 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 19 Nov 2025 07:33:55 +0000 (08:33 +0100)
commit8ad236f8a457c88906261411bcafa1a91fa96124
tree6c24a16c9c968f11378464bed3ce65be164a0812
parent01be9047988d15850ca15d146c5f4aeb5de2f569
gpio: shared: extend the ifdef guard to gpio_shared_find_entry()

While this function is supposed to be used by all scanning functions, so
far we only have a single one for OF trees. Once we add support for ACPI
and software nodes, we'll drop the CONFIG_OF guard around this routine
but in order to avoid build warnings, let's extend it to cover it in the
meantime.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511180232.EItKeYjY-lkp@intel.com/
Link: https://lore.kernel.org/r/20251118-gpiolib-shared-of-guard-v1-1-e4ef149a2e0b@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-shared.c