]> git.baikalelectronics.ru Git - uboot.git/commit
kconfig: Update IS_ENABLED() internals
authorSimon Glass <sjg@chromium.org>
Sat, 22 Jan 2022 12:07:25 +0000 (05:07 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 9 Feb 2022 04:07:59 +0000 (23:07 -0500)
commit80d6dae8bda9398b386e18ed63a5a72be82f0757
treea308f4e3a98075dbd003aebc91a9a49f106cd3db
parent5dd10ee6a16c91f4ac6cc9277b34f484e49de4b9
kconfig: Update IS_ENABLED() internals

The config_enabled() macro currently uses 0 as the default value. Update
it to allow any value, so we can pass it something else, such as a
non-existent function, to produce a build error if it is not defined.

Also tidy up the code style for IS_ENABLED() and drop the unnecessary
brackets (the value is a simple 0 or 1).

Signed-off-by: Simon Glass <sjg@chromium.org>
include/linux/kconfig.h