Re: [PATCH v5 04/13] kconfig: Update IS_ENABLED() internals

Tom Rini
2022-02-09T16:38:17Z

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

On Sat, Jan 22, 2022 at 05:07:25AM -0700, Simon Glass wrote:

> 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>

Applied to u-boot/master, thanks!

--
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]