Re: [PATCH] checkpatch: Add test for possible misuse of IS_ENABLED() without CONFIG_

From: Kees Cook
Date: Fri Jun 05 2020 - 14:48:16 EST


On Fri, Jun 05, 2020 at 11:24:43AM -0700, Joe Perches wrote:
> IS_ENABLED is almost always used with CONFIG_<FOO> defines.
>
> Add a test to verify that the #define being tested starts with CONFIG_.
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook