[PATCH v2 2/2] checkpatch.pl: Make CONFIG_IS_ENABLED(CONFIG_*) an error

Simon Glass sjg at chromium.org
Mon Oct 5 12:56:45 CEST 2020


On Mon, 5 Oct 2020 at 00:57, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>
> CONFIG_IS_ENABLED() takes the kconfig name without the CONFIG_ prefix,
> e.g. CONFIG_IS_ENABLED(CLK) for CONFIG_CLK. Make including the prefix
> an error in checkpatch.pl so calls in the wrong format aren't
> accidentally reintroduced.
>
> Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>
> ---
>
> Changes in v2:
> - Add patman test
>
> v1: https://patchwork.ozlabs.org/project/uboot/patch/20200930114612.22319-2-alpernebiyasak@gmail.com/
>
>  scripts/checkpatch.pl           | 6 ++++++
>  tools/patman/test_checkpatch.py | 6 ++++++
>  2 files changed, 12 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list