summaryrefslogtreecommitdiff
path: root/include/linux/pinctrl/pinconf.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-06-13 04:55:31 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-06-25 11:49:18 +0300
commitec6516bfbaf72e7c81811162b6de96322e32a027 (patch)
treeb09f9ad73cc42c90e6c43504381b69751182abdd /include/linux/pinctrl/pinconf.h
parentd9c238c5a6aeee2706d5ace0b1aa005e6d1a482f (diff)
downloadlinux-ec6516bfbaf72e7c81811162b6de96322e32a027.tar.xz
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>
Diffstat (limited to 'include/linux/pinctrl/pinconf.h')
-rw-r--r--include/linux/pinctrl/pinconf.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/pinctrl/pinconf.h b/include/linux/pinctrl/pinconf.h
index 9bebc3554809..513883dcc5a9 100644
--- a/include/linux/pinctrl/pinconf.h
+++ b/include/linux/pinctrl/pinconf.h
@@ -12,8 +12,6 @@
#ifndef __LINUX_PINCTRL_PINCONF_H
#define __LINUX_PINCTRL_PINCONF_H
-#ifdef CONFIG_PINCONF
-
#include <linux/types.h>
struct pinctrl_dev;
@@ -67,6 +65,4 @@ struct pinconf_ops {
unsigned long config);
};
-#endif
-
#endif /* __LINUX_PINCTRL_PINCONF_H */