Pin control: core.c Eliminate three compiler warnings
Subsystems (2)
PATCH 1/1 Pin control: core.c Eliminate three compiler warnings
In reply to a message not in the archivePatch sent directly to me, applied.
Yours,
Linus Walleij
---------- Forwarded message ---------
From: Chris Sorenson <[email protected]>
Date: Sun, Oct 25, 2020 at 5:56 AM
Subject: [PATCH] Pin control: core.c Eliminate three compiler warnings
To: <[email protected]>
Eliminate three "declared but not used" compiler warnings by moving the variable declarations into the #ifdef where they are actually used.
Signed-off-by Chris Sorenson <[email protected]>
--
drivers/pinctrl/core.c|6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/core.c +0 -0
@@ -1623,6 +1623,9 @@ static int pinctrl_pins_show(struct seq_file *s,
void *what)
seq_printf(s, "pin %d (%s) ", pin, desc->name);
#ifdef CONFIG_GPIOLIB
+ struct pinctrl_gpio_range *range;
+ unsigned int gpio_num;
+ struct gpio_chip *chip;
gpio_num = 0;
list_for_each_entry(range, &pctldev->gpio_ranges, node) {
if ((pin >= range->pin_base) &&