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: ddeb66d2cb ("gpio: nomadik: don't print out global GPIO numbers in debugfs callbacks")
Reported-by: kernel 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: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Bartosz Golaszewski 2025-09-03 15:19:03 +02:00
parent da33df43e5
commit 79d15f23f2
1 changed files with 2 additions and 0 deletions

View File

@ -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 gpio_chip *chip, unsigned int offset)
{ {
struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip); struct nmk_gpio_chip *nmk_chip = gpiochip_get_data(chip);
#ifdef CONFIG_PINCTRL_NOMADIK
struct gpio_desc *desc; struct gpio_desc *desc;
#endif
int mode; int mode;
bool is_out; bool is_out;
bool data_out; bool data_out;