diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-01-11 10:44:44 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-11 18:51:35 +0000 |
commit | aff5df0393abbff3e8adbac053b96451f0e219d0 (patch) | |
tree | 3ef1281417e6eafdad621734bbe8224237a851d7 /.checkpatch.conf | |
parent | 53103cee5a0a75eaf47c43c45cda83ddd71079ea (diff) | |
download | chrome-ec-aff5df0393abbff3e8adbac053b96451f0e219d0.tar.gz |
checkpatch: ignore PRINTK_WITHOUT_KERN_LEVEL for Zephyr
Zephyr commits occasionally use a function called "printk", but this
is not the same printk used in the Linux kernel. So we need to
disable this kernel level check.
BUG=none
BRANCH=none
TEST=presubmit with commit that uses printk
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ida9eb1a543e3ca243c7db12b33938f0cd2524c44
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2622506
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to '.checkpatch.conf')
-rw-r--r-- | .checkpatch.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf index b10ce8d81a..3be4a5f821 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -12,3 +12,7 @@ # Shorter KConfig descriptions are OK. --min-conf-desc-length=2 + +# Zephyr has a function named "printk" with different facilities than +# the printk in the Linux kernel this check is made for. +--ignore PRINTK_WITHOUT_KERN_LEVEL |