diff options
| author | 2021-01-18 19:51:49 +0100 | |
|---|---|---|
| committer | 2021-01-18 19:51:49 +0100 | |
| commit | c23010ffb20acb02a1d41dc025131609916ed633 (patch) | |
| tree | 8a6ce10eb17196a3e22cccf92daa9e36d2651eab /scripts/checkpatch.pl | |
| parent | ALSA: usb-audio: Avoid implicit feedback on Pioneer devices (diff) | |
| parent | MAINTAINERS: update qcom ASoC drivers list (diff) | |
Merge tag 'asoc-fix-v5.11-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.11
A few more fixes for v5.11, mostly around HDA jack detection, plus
a couple of updates to the MAINTAINERS entries.
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 && |
