Message ID | 55F99A1E.2010401@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b59a87a..272eef1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2474,7 +2474,7 @@ sub process { WARN("__func__ should be used instead of gcc specific __FUNCTION__\n" . $herecurr); } -# recommend qemu_strto* over strto* - if ($line =~ /\b(strto.*?)\s*\(/) { +# recommend qemu_strto* over strto* for numeric conversions + if ($line =~ /\b(strto[^k].*?)\s*\(/) { WARN("consider using qemu_$1 in preference to $1\n" . $herecurr); }