aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorGravatar Max Kellermann <max.kellermann@ionos.com> 2024-03-11 14:32:23 +0100
committerGravatar Linus Walleij <linus.walleij@linaro.org> 2024-03-12 12:53:35 +0100
commitfa63587f94a77a49b53274dc0fd1ea41dfde5966 (patch)
tree1b306a945019f405bb760f28b972131d89c33d14 /drivers/gpio
parentgpio: nomadik: remove BUG_ON() in nmk_gpio_populate_chip() (diff)
downloadlinux-fa63587f94a77a49b53274dc0fd1ea41dfde5966.tar.gz
linux-fa63587f94a77a49b53274dc0fd1ea41dfde5966.tar.bz2
linux-fa63587f94a77a49b53274dc0fd1ea41dfde5966.zip
drivers/gpio/nomadik: move dummy nmk_gpio_dbg_show_one() to header
When `CONFIG_DEBUG_FS` is disabled, nmk_gpio_dbg_show_one() is an empty dummy function; this however triggers a `-Wmissing-prototypes` warning and later a linker error because the function is also used by drivers/pinctrl/nomadik/pinctrl-nomadik.c, therefore it needs to be non-static. To allow both sources to access this dummy function, this patch moves it to the header, adding the `#ifdef CONFIG_DEBUG_FS` there as well. Signed-off-by: Max Kellermann <max.kellermann@ionos.com> Link: https://lore.kernel.org/r/20240311133223.3429428-1-max.kellermann@ionos.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-nomadik.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpio/gpio-nomadik.c b/drivers/gpio/gpio-nomadik.c
index 5e2f9b51ece3..836f1cc760c2 100644
--- a/drivers/gpio/gpio-nomadik.c
+++ b/drivers/gpio/gpio-nomadik.c
@@ -486,14 +486,6 @@ static void nmk_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
#else
-static inline void nmk_gpio_dbg_show_one(struct seq_file *s,
- struct pinctrl_dev *pctldev,
- struct gpio_chip *chip,
- unsigned int offset,
- unsigned int gpio)
-{
-}
-
#define nmk_gpio_dbg_show NULL
#endif