pinctrl: remove unneeded #ifdef around declarations
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 13 Jun 2019 01:55:31 +0000 (10:55 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Jun 2019 08:49:18 +0000 (10:49 +0200)
commitec6516bfbaf72e7c81811162b6de96322e32a027
treeb09f9ad73cc42c90e6c43504381b69751182abdd
parentd9c238c5a6aeee2706d5ace0b1aa005e6d1a482f
pinctrl: remove unneeded #ifdef around declarations

What is the point in surrounding the whole of declarations with
ifdef like this?

  #ifdef CONFIG_FOO
  int foo(void);
  #endif

If CONFIG_FOO is not defined, all callers of foo() will fail
with implicit declaration errors since the top Makefile adds
-Werror-implicit-function-declaration to KBUILD_CFLAGS.

This breaks the build earlier when you are doing something wrong.
That's it.

Anyway, it will fail to link since the definition of foo() is not
compiled.

In summary, these ifdef are unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/pinconf-generic.h
include/linux/pinctrl/pinconf.h
include/linux/pinctrl/pinctrl.h
include/linux/pinctrl/pinmux.h