Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421589 > unrolled thread
| Started by | Masahiro Yamada <yamada.masahiro@socionext.com> |
|---|---|
| First post | 2016-06-14 08:00 +0200 |
| Last post | 2016-06-14 19:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/5] export.h: use __is_defined() to check if __KSYM_* is defined Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-06-14 08:00 +0200
Re: [PATCH 2/5] export.h: use __is_defined() to check if __KSYM_* is defined Nicolas Pitre <nicolas.pitre@linaro.org> - 2016-06-14 19:20 +0200
| From | Masahiro Yamada <yamada.masahiro@socionext.com> |
|---|---|
| Date | 2016-06-14 08:00 +0200 |
| Subject | [PATCH 2/5] export.h: use __is_defined() to check if __KSYM_* is defined |
| Message-ID | <rJPyh-wi-1@gated-at.bofh.it> |
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> --- include/linux/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/export.h b/include/linux/export.h index 2f9ccbe..c565f87 100644 --- 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_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) \ -- 1.9.1
[toc] | [next] | [standalone]
| From | Nicolas Pitre <nicolas.pitre@linaro.org> |
|---|---|
| Date | 2016-06-14 19:20 +0200 |
| Subject | Re: [PATCH 2/5] export.h: use __is_defined() to check if __KSYM_* is defined |
| Message-ID | <rK0am-7OM-17@gated-at.bofh.it> |
| In reply to | #1421589 |
On Tue, 14 Jun 2016, Masahiro Yamada wrote: > 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> > --- > > include/linux/export.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/export.h b/include/linux/export.h > index 2f9ccbe..c565f87 100644 > --- 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_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) \ > -- > 1.9.1 > >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web