Re: [PATCH 1/2] pinctrl: nomadik: hide nmk_gpio_get_mode when unused

2016-05-09 Thread Linus Walleij
On Tue, May 3, 2016 at 5:26 PM, Arnd Bergmann wrote: > nmk_gpio_get_mode is only used in one place, and that is conditionally > compiled if DEBUG_FS is enabled. A recent cleanup has marked the > definition 'static', which now leads to a warning: > > drivers/pinctrl/nomadik/pinctrl-nomadik.c:614:1

[PATCH 1/2] pinctrl: nomadik: hide nmk_gpio_get_mode when unused

2016-05-03 Thread Arnd Bergmann
nmk_gpio_get_mode is only used in one place, and that is conditionally compiled if DEBUG_FS is enabled. A recent cleanup has marked the definition 'static', which now leads to a warning: drivers/pinctrl/nomadik/pinctrl-nomadik.c:614:12: error: 'nmk_gpio_get_mode' defined but not used [-Werror=unu