Skip to content

Commit

Permalink
checkpatch: Ignore IS_ENABLED_CONFIG warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
erwango authored and nashif committed Oct 18, 2021
1 parent 79f8af0 commit e9d4b8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .checkpatch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@
--ignore COMPLEX_MACRO
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
--ignore ENOSYS
--ignore IS_ENABLED_CONFIG
--exclude ext

0 comments on commit e9d4b8f

Please sign in to comment.