linux-stable/include/linux/pinctrl
Masahiro Yamada ec6516bfba 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>
2019-06-25 10:49:18 +02:00
..
consumer.h pinctrl/gpio: Unify namespace for cross-calls 2017-09-22 11:02:10 +02:00
devinfo.h pinctrl: Forward declare struct device 2018-01-22 13:31:19 +01:00
machine.h
pinconf-generic.h pinctrl: remove unneeded #ifdef around declarations 2019-06-25 10:49:18 +02:00
pinconf.h pinctrl: remove unneeded #ifdef around declarations 2019-06-25 10:49:18 +02:00
pinctrl-state.h pinctrl: add include guard to pinctrl-state.h 2019-06-09 16:53:22 +02:00
pinctrl.h pinctrl: remove unneeded #ifdef around declarations 2019-06-25 10:49:18 +02:00
pinmux.h pinctrl: remove unneeded #ifdef around declarations 2019-06-25 10:49:18 +02:00