diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-06-14 01:58:55 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-06-20 16:42:32 -0400 |
commit | 6023d2369ba7b82b0588fd6fcdd558a6fef200ae (patch) | |
tree | 4cffa7456a89d6d1de7b3977eb782c3e1e598e78 | |
parent | 4f920843d248946545415c1bf6120942048708ed (diff) |
export.h: use __is_defined() to check if __KSYM_* is defined
Here the need is for a macro that checks whether the given symbol is
defined or not, which has nothing to do with config.
The new macro __is_defined() is a better fit for this case.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Michal Marek <mmarek@suse.com>
-rw-r--r-- | include/linux/export.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/export.h b/include/linux/export.h index 2f9ccbe6a639..c565f87f005e 100644 --- a/include/linux/export.h +++ b/include/linux/export.h | |||
@@ -82,7 +82,7 @@ extern struct module __this_module; | |||
82 | #include <generated/autoksyms.h> | 82 | #include <generated/autoksyms.h> |
83 | 83 | ||
84 | #define __EXPORT_SYMBOL(sym, sec) \ | 84 | #define __EXPORT_SYMBOL(sym, sec) \ |
85 | __cond_export_sym(sym, sec, config_enabled(__KSYM_##sym)) | 85 | __cond_export_sym(sym, sec, __is_defined(__KSYM_##sym)) |
86 | #define __cond_export_sym(sym, sec, conf) \ | 86 | #define __cond_export_sym(sym, sec, conf) \ |
87 | ___cond_export_sym(sym, sec, conf) | 87 | ___cond_export_sym(sym, sec, conf) |
88 | #define ___cond_export_sym(sym, sec, enabled) \ | 88 | #define ___cond_export_sym(sym, sec, enabled) \ |