diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2021-01-26 15:35:13 +0100 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2021-01-26 15:35:13 +0100 |
| commit | b4478a080673958aa8b35d8de46ba7589c8fcc47 (patch) | |
| tree | c896b8272e0aad398e99ed98231775b7b474dd02 /scripts | |
| parent | 3bbf9b89592d18c391eafd7a5e0e7429ae2dc767 (diff) | |
| parent | e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 (diff) | |
| download | cachepc-linux-b4478a080673958aa8b35d8de46ba7589c8fcc47.tar.gz cachepc-linux-b4478a080673958aa8b35d8de46ba7589c8fcc47.zip | |
Merge tag 'v5.11-rc2' into devel
Linux 5.11-rc2
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 6 | ||||
| -rwxr-xr-x | scripts/depmod.sh | 2 |
2 files changed, 8 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 && diff --git a/scripts/depmod.sh b/scripts/depmod.sh index e083bcae343f..3643b4f896ed 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -15,6 +15,8 @@ if ! test -r System.map ; then exit 0 fi +# legacy behavior: "depmod" in /sbin, no /sbin in PATH +PATH="$PATH:/sbin" if [ -z $(command -v $DEPMOD) ]; then echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2 echo "This is probably in the kmod package." >&2 |
