diff options
author | He Zhe <[email protected]> | 2020-10-28 18:39:21 +0800 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-11-05 14:52:23 +0100 |
commit | b507cb92477ad85902783a183c5ce01d16296687 (patch) | |
tree | eb2f8699c766a251f85b6983ad5f74d1e594ac40 /tools/perf/scripts/python/stackcollapse.py | |
parent | 9c65441ec823c7889fc3cd1f00208401cf7044d8 (diff) |
pinctrl: core: Add missing #ifdef CONFIG_GPIOLIB
To fix the following build warnings when CONFIG_GPIOLIB=n.
drivers/pinctrl/core.c:1607:20: warning: unused variable 'chip' [-Wunused-variable]
1608 | struct gpio_chip *chip;
| ^~~~
drivers/pinctrl/core.c:1606:15: warning: unused variable 'gpio_num' [-Wunused-variable]
1607 | unsigned int gpio_num;
| ^~~~~~~~
drivers/pinctrl/core.c:1605:29: warning: unused variable 'range' [-Wunused-variable]
1606 | struct pinctrl_gpio_range *range;
| ^~~~~
Fixes: f1b206cf7c57 ("pinctrl: core: print gpio in pins debugfs file")
Signed-off-by: He Zhe <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions