Skip to content

Commit e9d4b8f

Browse files
erwangonashif
authored andcommitted
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 <erwan.gouriou@linaro.org>
1 parent 79f8af0 commit e9d4b8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.checkpatch.conf

+1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@
2828
--ignore COMPLEX_MACRO
2929
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
3030
--ignore ENOSYS
31+
--ignore IS_ENABLED_CONFIG
3132
--exclude ext

0 commit comments

Comments
 (0)