drivers/gpio/nomadik: move dummy nmk_gpio_dbg_show_one() to header
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 11 Mar 2024 13:32:23 +0000 (14:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Mar 2024 11:53:35 +0000 (12:53 +0100)
commitfa63587f94a77a49b53274dc0fd1ea41dfde5966
tree1b306a945019f405bb760f28b972131d89c33d14
parent289b950b8e50d2e23120081d110f3f6fae5c085f
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>
drivers/gpio/gpio-nomadik.c
include/linux/gpio/gpio-nomadik.h