Commit 79d15f23 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: nomadik: wrap a local variable in a necessary ifdef



The 'desc' local variable in nmk_gpio_dbg_show_one() is now only used
with CONFIG_PINCTRL_NOMADIK enabled so wrap its declaration with an
appropriate ifdef.

Fixes: ddeb66d2 ("gpio: nomadik: don't print out global GPIO numbers in debugfs callbacks")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202509032125.nXBcPuaf-lkp@intel.com/
Link: https://lore.kernel.org/r/20250903131903.95100-1-brgl@bgdev.pl


Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent da33df43
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -400,7 +400,9 @@ void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev,
			   struct gpio_chip *chip, unsigned int offset)
{
	struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip);
#ifdef CONFIG_PINCTRL_NOMADIK
	struct gpio_desc *desc;
#endif
	int mode;
	bool is_out;
	bool data_out;