From e9d4b8fb469a228ce7dee52e933a6476dc961e87 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Wed, 13 Oct 2021 11:16:53 +0200 Subject: [PATCH] checkpatch: Ignore IS_ENABLED_CONFIG warnings Warning IS_ENABLED_CONFIG allows checkpatch.pl to generate a warning when IS_ENABLED macro is used with an argument which is not a CONFIG_ symbol. This is abusive as the macro definition implicitly mentions it could be used with other symbols ("It is often used with a @p CONFIG_FOO"). In Zephyr, IS_ENABLED macro is also used with for instance DT macros, which generates github CI failures, which then require waiver from maintainers. Make things more simple by just removing this warning. Signed-off-by: Erwan Gouriou --- .checkpatch.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/.checkpatch.conf b/.checkpatch.conf index 2b213c17349..ba5ace18410 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -28,4 +28,5 @@ --ignore COMPLEX_MACRO --ignore MULTISTATEMENT_MACRO_USE_DO_WHILE --ignore ENOSYS +--ignore IS_ENABLED_CONFIG --exclude ext