From: Masahiro Yamada Date: Tue, 14 Jun 2016 05:58:55 +0000 (+0900) Subject: export.h: use __is_defined() to check if __KSYM_* is defined X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6023d2369ba7b82b0588fd6fcdd558a6fef200ae;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Nicolas Pitre Signed-off-by: Michal Marek --- 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; #include #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) \