diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-06-14 14:58:54 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-23 19:50:12 +0100 |
| commit | 675901851fd2a00c7a70bcf327303efba3b81e2f (patch) | |
| tree | 62bf39ebb1e4b33ed8e26d3a6d837aa7b852dbba /tools/perf/scripts/python | |
| parent | a88693d006986b8fc9ae5036852ac0156106de2a (diff) | |
kconfig.h: use __is_defined() to check if MODULE is defined
commit 4f920843d248946545415c1bf6120942048708ed upstream.
The macro MODULE is not a config option, it is a per-file build
option. So, config_enabled(MODULE) is not sensible. (There is
another case in include/linux/export.h, where config_enabled() is
used against a non-config option.)
This commit renames some macros in include/linux/kconfig.h for the
use for non-config macros and replaces config_enabled(MODULE) with
__is_defined(MODULE).
I am keeping config_enabled() because it is still referenced from
some places, but I expect it would be deprecated in the future.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Razvan Ghitulete <rga@amazon.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
