projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f92084
)
export.h: use __is_defined() to check if __KSYM_* is defined
author
Masahiro Yamada
<
[email protected]
>
Tue, 14 Jun 2016 05:58:55 +0000
(14:58 +0900)
committer
Michal Marek
<
[email protected]
>
Mon, 20 Jun 2016 20:42:32 +0000
(22:42 +0200)
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 <
[email protected]
>
Acked-by: Nicolas Pitre <
[email protected]
>
Signed-off-by: Michal Marek <
[email protected]
>
include/linux/export.h
patch
|
blob
|
history
diff --git
a/include/linux/export.h
b/include/linux/export.h
index 2f9ccbe6a6390a4f2b2faea3cac96fd49ce48e1c..c565f87f005e9321d8198ba2d353f3447bcc5d84 100644
(file)
--- a/
include/linux/export.h
+++ b/
include/linux/export.h
@@
-82,7
+82,7
@@
extern struct module __this_module;
#include <generated/autoksyms.h>
#define __EXPORT_SYMBOL(sym, sec) \
- __cond_export_sym(sym, sec,
config_enabl
ed(__KSYM_##sym))
+ __cond_export_sym(sym, sec,
__is_defin
ed(__KSYM_##sym))
#define __cond_export_sym(sym, sec, conf) \
___cond_export_sym(sym, sec, conf)
#define ___cond_export_sym(sym, sec, enabled) \