Skip to content

Commit a074397

Browse files
marc-hblgirdwood
authored andcommitted
check patch: turn off printk warnings
Zephyr's printk does not work like Linuxs printk Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 0c21218 commit a074397

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/checkpatch.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,6 +4129,8 @@ sub process {
41294129
"LINUX_VERSION_CODE should be avoided, code should be for the version to which it is merged\n" . $herecurr);
41304130
}
41314131

4132+
if(!$SOF) {
4133+
41324134
# check for uses of printk_ratelimit
41334135
if ($line =~ /\bprintk_ratelimit\s*\(/) {
41344136
WARN("PRINTK_RATELIMITED",
@@ -4169,6 +4171,8 @@ sub process {
41694171
"Prefer dev_$level(... to dev_printk(KERN_$orig, ...\n" . $herecurr);
41704172
}
41714173

4174+
} # !$SOF
4175+
41724176
# ENOSYS means "bad syscall nr" and nothing else. This will have a small
41734177
# number of false positives, but assembly files are not checked, so at
41744178
# least the arch entry code will not trigger this warning.

0 commit comments

Comments
 (0)