diff options
| author | 2021-01-13 17:56:56 +0000 | |
|---|---|---|
| committer | 2021-01-13 17:56:56 +0000 | |
| commit | cea06d9bf0e035a549226e217022fa51b0c878e5 (patch) | |
| tree | a882062da6ee7f1de90a21cc0e717073cc71cb5d /scripts/checkpatch.pl | |
| parent | ASoC: SOF: Intel: fix page fault at probe if i915 init fails (diff) | |
| parent | Linux 5.11-rc3 (diff) | |
Merge v5.11-rc3
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 00085308ed9d..92e888ed939f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -6646,6 +6646,12 @@ sub process { # } # } +# strlcpy uses that should likely be strscpy + if ($line =~ /\bstrlcpy\s*\(/) { + WARN("STRLCPY", + "Prefer strscpy over strlcpy - see: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw\@mail.gmail.com/\n" . $herecurr); + } + # typecasts on min/max could be min_t/max_t if ($perl_version_ok && defined $stat && |
