Skip to content

Commit

Permalink
export.h: use __is_defined() to check if __KSYM_* is defined
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada authored and Michal Marek committed Jun 20, 2016
1 parent 4f92084 commit 6023d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ extern struct module __this_module;
#include <generated/autoksyms.h>

#define __EXPORT_SYMBOL(sym, sec) \
__cond_export_sym(sym, sec, config_enabled(__KSYM_##sym))
__cond_export_sym(sym, sec, __is_defined(__KSYM_##sym))
#define __cond_export_sym(sym, sec, conf) \
___cond_export_sym(sym, sec, conf)
#define ___cond_export_sym(sym, sec, enabled) \
Expand Down

0 comments on commit 6023d23

Please sign in to comment.