Re: [PATCH v5 5/5] checkpatch: Skip kernel specific checks for userspace
From: Petr Vorel
Date: Wed Sep 02 2026 - 02:24:12 EST
Hi all,
[ snip ]
> # prefer usleep_range over udelay
> - if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
> + if (!is_uapi($realfile) && $line =~ /\budelay\s*\(\s*(\d+)\s*\)/) {
> my $delay = $1;
> # ignore udelay's < 10, however
> if (! ($delay < 10) ) {
> @@ -6715,7 +6715,7 @@ sub process {
> }
> # warn about unexpectedly long msleep's
> - if ($line =~ /\bmsleep\s*\((\d+)\);/) {
> + if (!is_uapi($realfile) && $line =~ /\bmsleep\s*\((\d+)\);/) {
I'm sorry for silly error to use 2x wrong function name (I need to pay more
attention what autocomplete actually fills when typing just is_u<Ctrl-N>).
Kind regards,
Petr